PATCH
/api/admin/settings/{key}AdminUpdate a server setting
Sets the value of one server setting. The value is validated against the setting's own schema (boolean, string, ...).
operationId
patch_api_admin_settings_keyAdministrationAuthentication & permissionsAdmin
Platform administrators only
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Platform administrators only
Path parameters
| Name | Type | Description |
|---|---|---|
| key* | string |
Request body
Required
application/json
UpdateServerSettingRequest
| Property | Type | Description |
|---|---|---|
| value | any | New value; validated against the setting's own schema |
| description | string |
JSONExample
"value"null
"description""string"
Responses
application/json
| Property | Type | Description |
|---|---|---|
| success* | true | |
| data* | object | |
| key* | string | |
| value | any |
JSONExample
"success"true
"data"
"key""string"
"value"null
Example request
bashcurl
curl -X PATCH 'https://auth.schemavaults.com/api/admin/settings/<key>' \
-b 'refresh_token_<auth_server_app_id>=<value>' \
-H 'Content-Type: application/json' \
-d '{
"value": null,
"description": "string"
}'