Herald
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
/api/realms/{realmId}/config/totp

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.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

realmId*string

Realm ID

Request Body

application/json
  1. body
enabled*boolean
forceEnabled*boolean

Response Body

Realm TOTP configuration updated

application/json
  1. response
enabled*boolean
forceEnabled*boolean
message*string
updatedAt*string
Example Request
curl -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"
}