Skip to content

Update Sessions Config

POST/web/v1/users/self/security/sessions/config JWT

Updates the authenticated user's session configuration. Supports partial updates — only provided fields are changed.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token
X-SC-Session-IdSecure channel session ID

Request Parameters

NameTypeRequiredInDescription
ssoEnabledBooleanOptionalbodyEnable or disable single sign-on enforcement
maxSessionsIntegerOptionalbodyMaximum number of concurrent sessions

Success Response

Success 200
{
  "version": "1.3.0",
  "timestamp": 1709337600000,
  "success": true,
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "accountBizId": "acc_abc123",
    "ssoEnabled": true,
    "maxSessions": 5,
    "passwordChangedAt": "2026-03-23T10:00:00Z",
    "lastLoginAt": "2026-03-23T12:00:00Z",
    "lastLoginIp": "1.2.3.4"
  }
}

Error Responses

Unauthorized 401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}

Notes

  • Replaces the old POST /security/config endpoint.
  • Only ssoEnabled and maxSessions are configurable — other fields in the response are read-only.

SlaunchX Internal Documentation