Update a job
PATCH/v1/watch/jobs/:id
Partial update with the same field set as creation, except url (a job's
target cannot be changed).
- A field you leave out is unchanged.
webhook_url: null(or"") removes the callback.schedule: nullis rejected — pass a new schedule object instead.- Changing
selector_typewithoutselectorre-validates the existing selector against the new type. - Re-sending the same values succeeds idempotently.
- Registering a callback address this account has not used before returns
data.data.webhook_secretonce, exactly like creation; the rest of the response is the job, nested asdata.data.job.
The body is accepted as JSON or form-encoded (application/x-www-form-urlencoded).
With form encoding, schedule, headers and mask are JSON object strings and
diff_modes is sent by repeating the field name (or as a JSON array string) — the
same rules as the other endpoints that accept form bodies.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Success; the job is nested as data.data.job (plus a one-time webhook_secret when a new callback URL was registered)
Response Headers
Always no-store.
The platform's own request identifier.
The request was rejected — see the error table for the code
The credential is missing, invalid, or expired
The credential is valid but not allowed to do this
The target does not exist, or does not belong to this account