OpenapiRealms
Update realm TOTP configuration
Updates the TOTP (Time-based One-Time Password) configuration for a realm, including whether TOTP is enabled and whether it is force-required for all users. Requires 'settings.manage' permission.
PUT
Updates the TOTP (Time-based One-Time Password) configuration for a realm, including whether TOTP is enabled and whether it is force-required for all users. Requires 'settings.manage' permission.
bearer_authheader
AuthorizationBearer <token>realmId*stringRealm ID
application/json- body
enabled*booleanforceEnabled*booleanRealm TOTP configuration updated
application/json- response
enabled*booleanforceEnabled*booleanmessage*stringupdatedAt*stringcurl -X PUT 'https://example.com/api/realms/string/config/totp' \
-H 'Content-Type: application/json' \
-d '{
"enabled": true,
"forceEnabled": true
}'Example Response
{
"enabled": true,
"forceEnabled": true,
"message": "string",
"updatedAt": "string"
}