API ReferenceManagementTenantsSession Settings
POST
/v1/mgmt/tenant/settings

Update session settings for a tenant

This endpoint allows you to update the session settings of a given tenant.

See Also

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/tenant/settings

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

tenantIdstring

domainsarray<string>

selfProvisioningDomainsarray<string>

authTypestring

enabledboolean

refreshTokenExpirationinteger

Format: "int32"

refreshTokenExpirationUnitstring

sessionTokenExpirationinteger

Format: "int32"

sessionTokenExpirationUnitstring

stepupTokenExpirationinteger

Format: "int32"

stepupTokenExpirationUnitstring

enableInactivityboolean

inactivityTimeinteger

Format: "int32"

inactivityTimeUnitstring

JITDisabledboolean

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/tenant/settings" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ProjectId:ManagementKey>" \
  -d '{
  "tenantId": "string",
  "domains": [
    "string"
  ],
  "selfProvisioningDomains": [
    "string"
  ],
  "authType": "string",
  "enabled": true,
  "refreshTokenExpiration": 0,
  "refreshTokenExpirationUnit": "string",
  "sessionTokenExpiration": 0,
  "sessionTokenExpirationUnit": "string",
  "stepupTokenExpiration": 0,
  "stepupTokenExpirationUnit": "string",
  "enableInactivity": true,
  "inactivityTime": 0,
  "inactivityTimeUnit": "string",
  "JITDisabled": true
}'
Was this helpful?