Update anonymous auth settings
PUT
/api/admin/settings/anonymous-auth
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/settings/anonymous-auth \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "default_expires_in_days": 30, "cleanup_interval_hours": 24 }'Updates anonymous authentication feature flag and related cleanup/expiration settings in AUTHRIM_CONFIG.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Anonymous authentication configuration patch.
Media type application/json
object
enabled
boolean
default_expires_in_days
integer | null
cleanup_interval_hours
integer
key
additional properties
Example
{ "enabled": true, "default_expires_in_days": 30, "cleanup_interval_hours": 24}Responses
Section titled “ Responses ”Successful JSON response.
Media type application/json
object
success
boolean
updates
Array<string>
note
string
key
additional properties
Example
{ "success": true, "updates": [ "enabled: true", "default_expires_in_days: 30" ], "note": "Config updated. Cache will refresh within 10 seconds."}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}