Skip to main content

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: null is rejected — pass a new schedule object instead.
  • Changing selector_type without selector re-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_secret once, exactly like creation; the rest of the response is the job, nested as data.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​

Success; the job is nested as data.data.job (plus a one-time webhook_secret when a new callback URL was registered)

Response Headers
    Cache-Control

    Always no-store.

    X-Upstream-Request-Id

    The platform's own request identifier.