apistockdocs
API reference/Ops: settings

Change a runtime setting

PUT/ops/settings/{key}

Applies to every instance within moments. Send the `version` you read; a newer version returns `setting_version_conflict`.

bearer auth

Path parameters

keystringrequired
max length 200

Request body application/json · required

reasonstring

Why; required when reason_required

max length 500
valueanyrequired

New value, as JSON of the setting's kind

versioninteger (int64)required

Version last read

≥ 0

Responses

200OKapplication/json
constraintsobject

Validation summary such as min, max, one_of, max_len

defaultanyrequired

Value declared in code

descriptionstringrequired
groupstringrequired
invalid_stored_valuebooleanrequired

The stored value fails validation, so the default applies

keystringrequired
kindstringrequired
modifiedbooleanrequired

A stored value overrides the default

reason_requiredbooleanrequired
restart_pendingbooleanrequired
restart_requiredbooleanrequired
updated_atstring (date-time)
updated_bystring
valueanyrequired

Effective value

versioninteger (int64)required

Send back when changing the setting

401Unauthorizedapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

403Forbiddenapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

404Not Foundapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

409Conflictapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

422Unprocessable Entityapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

500Internal Server Errorapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

v0.5
esc
↑↓ move↵ openesc close