Skip to content

Reset the company’s session rules to the platform’s

DELETE
/v1/tenants/me/security-policy/session
curl --request DELETE \
--url https://api.emite.cr/v1/tenants/me/security-policy/session \
--header 'Authorization: Bearer <token>'

Always allowed, whatever the plan: a policy saved on a plan that included it keeps applying after a downgrade, so the way back to the platform’s rules has to stay open. Audited as security_policy.updated.

The security policy after the reset: both session rules null.

Media typeapplication/json
object
session
required

The company's session rules as saved.

object
maxAgeMinutes
required

Maximum session length in minutes, counted from sign-in; null = no rule of the company's own (the platform maximum, platformMaxAgeMinutes, applies).

number
nullable
idleTimeoutMinutes
required

Minutes without activity after which a session closes; null = no such rule.

number
nullable
updatedAt
required

When the session rules last changed, a reset included; null when they never were.

string format: date-time
nullable
options
required

The values the company may choose — served, so a client never offers one the API refuses.

object
maxAgeMinutes
required

The maximum session lengths the company may choose, in minutes — the only values PUT …/session accepts, leaving out any at or above the platform maximum.

Array<number>
idleTimeoutMinutes
required

The inactivity timeouts the company may choose, in minutes, with the same filter.

Array<number>
recommendedIdleTimeoutMinutes
required

The inactivity timeout EmiteCR recommends, in minutes.

number
platformMaxAgeMinutes
required

The platform's maximum session length, in minutes: the ceiling of every company rule.

number
entitled
required

Whether the company's plan includes the session policy — what changing it with PUT …/session needs (402 FEATURE_NOT_IN_PLAN otherwise). Resetting never does, and saved rules keep applying after a downgrade.

boolean
requiredPlan
required

The cheapest plan on the company's ladder that includes the session policy, for an upgrade prompt; null when the plan already includes it, or no sold plan does.

object
code
required

Code of the plan (pf_t3 on the persona física ladder, pj_t3 on the jurídica).

string
label
required

Its commercial name.

string
Example
{
"session": {
"maxAgeMinutes": 240,
"idleTimeoutMinutes": 30
},
"options": {
"maxAgeMinutes": [
120,
240
],
"idleTimeoutMinutes": [
15,
30,
60
],
"recommendedIdleTimeoutMinutes": 30
},
"platformMaxAgeMinutes": 480,
"requiredPlan": {
"code": "pj_t3",
"label": "Ocelote"
}
}

SECURITY_POLICY_NOT_AVAILABLE_IN_DEMO.

Missing or invalid JWT.

Requires the security:manage scope (JWT only).