Update platform setting

PATCH https://app.speybooks.com/api/v1/admin/settings/{key}

Update a single system setting by key. The request body must be a JSON object with a single value key: { "value": <any_type> }. The value is serialised via JSON.stringify(value) before storage, so it can be a string, number, boolean, array, or object.

Returns 404 if the key does not exist in system_settings. Records the admin who made the change via updated_by.

Side Effects

  • Writes SETTING_UPDATED to admin_audit_log

Path parameters

key string required
Setting key (e.g. maintenance_mode, early_access_enabled).

Response

200 Setting updated.

Error codes

400 Invalid setting value.
404 Setting key not found.