security

Set User Refresh Token Expiration Time

Set the expiration time in seconds for user session refresh tokens.

put/groups/{groupId}/apps/{appId}/security/refresh_token_expiration

Request

  • Base URL
    https://services.cloud.mongodb.com/api/admin/v3.0
  • URL
    https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/security/refresh_token_expiration
  • Auth
    HTTP bearer

Request body

expiration_time_secondsnumber

The time in seconds that a user session refresh token is valid for after it is issued. After this time, the token is expired and the user must re-authenticate.

The expiration time must be between 30 minutes and 5 years, inclusive. The default expiration time is 60 days.

Response

Expiration time updated

Changes

No recorded changes to this operation across all 50 revisions of this API.