apistockdocs
API reference/Ops: job definitions

Change a job's configuration

PUT/ops/jobs/definitions/{name}

Send only the fields to change. Applies to every instance within moments. Disabling or rescheduling requires a reason.

bearer auth

Path parameters

namestringrequired
max length 63

Request body application/json · required

enabledboolean
max_attemptsinteger (int64)
≥ 1 · ≤ 100
priorityinteger (int64)
≥ 1 · ≤ 4
queuestring
max length 100
reasonstring

Required to disable or reschedule a job

max length 500
schedulestring

5-field cron in UTC, @every duration, or empty for on-demand

max length 100
timeoutstring

Go duration such as 5m

max length 20
versioninteger (int64)required

Version last read

≥ 0

Responses

200OKapplication/json
configobjectrequired
enabledbooleanrequired
max_attemptsinteger (int64)required
priorityinteger (int64)required
queuestringrequired
schedulestringrequired

5-field cron in UTC, @every duration, or empty for on-demand

timeoutstringrequired

Go duration

defaultsobjectrequired
enabledbooleanrequired
max_attemptsinteger (int64)required
priorityinteger (int64)required
queuestringrequired
schedulestringrequired

5-field cron in UTC, @every duration, or empty for on-demand

timeoutstringrequired

Go duration

descriptionstringrequired
invalid_overridebooleanrequired

The stored override fails validation, so the defaults apply

last_runobject
actor_idstring
actor_kindstring
attemptinteger (int64)required
attempted_atstring (date-time)
created_atstring (date-time)required
errorsarray of object
finalized_atstring (date-time)
idinteger (int64)required
kindstringrequired
max_attemptsinteger (int64)required
priorityinteger (int64)required
queuestringrequired
request_idstring
scheduled_atstring (date-time)required
statestringrequired
modifiedbooleanrequired
namestringrequired
next_run_atstring (date-time)

Approximate next scheduled run

updated_atstring (date-time)
updated_bystring
versioninteger (int64)required

Send back when changing the definition

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