PATCH /v1/watches/:id updates selected watch fields. Send only what changes.
id
string
required
Watch id (watch_...).

Tenant scope

Writes are owner-scoped: another tenant’s watch id is 404 WATCH_NOT_FOUND, never 403. Restricted (sk_*) keys always write to their own owner. Internal keys can act on behalf of one tenant for watch reads and writes with ?owner=<ownerId> or X-AISearch-On-Behalf-Of: <ownerId>; the query parameter wins when both are present. A restricted key’s override is ignored. When an override is applied, the response adds a top-level owner field and an X-AISearch-Owner header containing the enforced owner id.
owner
string
Internal keys only. Owner id to enforce for this write. Overrides the X-AISearch-On-Behalf-Of header when both are sent.

Body

Every body field is optional.
name
string
New display name.
schedule
object
New cadence as { "every": "15m|30m|1h|6h|12h|1d|7d" } or { "intervalMinutes": integer }. The interval must meet the plan floor.
extract
boolean | object
New Auto Extract config. true and {} enable opportunistic extraction; { "targets": [...] } pins up to 10 targets of at most 100 characters each; false disables extraction.
webhookUrl
string | null
New public HTTPS destination. Send null to remove the webhook.
status
string
active or paused only. Pausing sets pausedReason: "user". Resuming from paused clears pausedReason and reschedules nextRunAt to now + intervalMinutes.
You cannot set status: "canceled" with PATCH. Use DELETE /v1/watches/:id to soft-cancel the watch.

Request

Response

200 OK
watch
object
The complete public Watch after the update. The schedule always includes both every and source-of-truth intervalMinutes.

Errors

400
VALIDATION_FAILED
An update field is invalid, including status: "canceled", a malformed schedule, or an invalid extraction target.
404
WATCH_NOT_FOUND
No watch exists for the given id, or it belongs to another tenant.
422
WATCH_INTERVAL_TOO_SHORT
The new schedule is below the plan’s minimum interval. The message names the floor and plan.
422

Watches

Lifecycle, plan limits, billing, and run history.

Get a watch

Read the current configuration and recent runs.

Delete a watch

Soft-cancel a watch permanently.

Webhooks

Verify signed deliveries from watch runs.