Herald
OpenapiRealms

Update realm Email OTP configuration

Enables/disables Email OTP login for a realm and separately controls whether unregistered emails are auto-registered on successful verification. Requires 'settings.manage' permission. Stored as `ConfigType::EmailOtp` / `config_key="settings"` JSON.

PUT
/api/realms/{realmId}/config/email-otp

Enables/disables Email OTP login for a realm and separately controls whether unregistered emails are auto-registered on successful verification. Requires 'settings.manage' permission. Stored as ConfigType::EmailOtp / config_key="settings" JSON.

Authorization

bearer_auth
headerAuthorizationBearer <token>

Path Parameters

realmId*string

Realm ID

Request Body

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

Response Body

Realm Email OTP configuration updated

application/json
  1. response
autoRegister*boolean
enabled*boolean
message*string
updatedAt*string
Example Request
curl -X PUT 'https://example.com/api/realms/string/config/email-otp' \
  -H 'Content-Type: application/json' \
  -d '{
  "autoRegister": true,
  "enabled": true
}'
Example Response
{
  "autoRegister": true,
  "enabled": true,
  "message": "string",
  "updatedAt": "string"
}