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
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.
bearer_authheader
AuthorizationBearer <token>realmId*stringRealm ID
application/json- body
autoRegister*booleanenabled*booleanRealm Email OTP configuration updated
application/json- response
autoRegister*booleanenabled*booleanmessage*stringupdatedAt*stringcurl -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"
}