Update system settings
PUT/api/admin/settings
Updates the singleton system settings (upsert). Every field is optional, so a partial payload only touches the fields it includes; numeric fields are clamped to safe bounds and an invalid timezone is rejected. The hCaptcha secret is write-only: send a non-empty hcaptchaSecretKey to set it, or hcaptchaSecretClear: true to remove it. Changes are audited (never the secret value). System administrators only.
Request
Responses
- 200
- 400
- 403
- 500
The updated settings (same shape as GET).
Invalid JSON body or invalid timezone.
Caller is not a system administrator (attempt is audited).
Failed to persist the update.