apistockdocs
v0.4 GitHub apistock.dev
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.

Authorization

bearer
Authorizationheader · stringrequired

Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.

Path

namestringrequired
maxLength: 63

Body

application/json
versionintegerrequired

Version last read

format: int64minimum: 0
enabledboolean
max_attemptsinteger
format: int64minimum: 1maximum: 100
priorityinteger
format: int64minimum: 1maximum: 4
queuestring
maxLength: 100
reasonstring

Required to disable or reschedule a job

maxLength: 500
schedulestring

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

maxLength: 100
timeoutstring

Go duration such as 5m

maxLength: 20

Responses

errors: application/problem+json
200

OK

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

422

Unprocessable Entity

500

Internal Server Error

Match errors on the problem's code, which stays the same, not on its message.

esc
↑↓ move↵ openesc close