Organizations
Update organization session policy
Changed onSets a custom session policy for an organization or reverts to application-level settings. Send session_policy='APPLICATION' to revert to application defaults. Send session_policy='CUSTOM' with timeout values to activate a custom policy.
patch/api/v1/organizations/{organization_id}/session-policy
Request
- Base URLhttps://$SCALEKIT_ENVIRONMENT_URL
- AuthOAuth 2Client credentialsToken URLhttps://$SCALEKIT_ENVIRONMENT_URL/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
organization_idstring required
The unique identifier of the organization whose session policy is being updated.
Request body
Example request
{
"absolute_session_timeout": 360,
"idle_session_timeout": 84,
"idle_session_timeout_enabled": true
}Response
Session policy updated successfully.
Example response
{
"policy": {
"absolute_session_timeout": 360,
"idle_session_timeout": 84,
"idle_session_timeout_enabled": true
}
}Changes
- info
endpoint added
- info