Skip to main content
PATCH
Each top-level field that you send replaces that whole field. Fields that you omit stay unchanged. The service does not do a nested merge. An empty object returns the monitor unchanged. See Manage monitors for examples. Send null to clear goal, metadata, or webhook. If you clear goal, it becomes "". If you clear metadata, it becomes {}. If you clear webhook, the service stops notifications, and runs continue. The service does not accept null for name, targets, or schedule.

Replace targets or schedules

A targets array replaces the full array and the configuration of each target. Repeat the required fields and any nondefault settings that you want to keep. On a Search target, if you omit max_results, the service resets it to 20. If you omit Search filters, the service restores both freshness date types and removes domain restrictions. If you omit judge.threshold on a Search or Page target, the service resets it to 0.5. On an Agent target, if you omit effort and profile, the service uses low effort. If you omit Agent filters, the service resets freshness to ["published", "updated"] and clears both domain lists. If you omit one Agent filter, the service resets that filter to its default. You can switch to a different target type. Send one target for Search or Agent. Send 1 to 10 targets with distinct URLs for Page. Do not mix target types. Do not send an empty array. When you update targets, the service keeps current run windows, seen-URL history, and stored Page baselines within their retention period. A Page URL with no stored baseline sets one when the monitor reads that page successfully for the first time. For an Agent target, see Saved state. A new schedule replaces the whole schedule. For an active monitor, the service then recomputes next_run_at. It does not recompute next_run_at before the first run finishes or while a queued run has not started. Include type and the required fields for that schedule.

Add, replace, or remove a webhook

A webhook object replaces the whole webhook. Include url and any event subscriptions that you want to keep. If you omit events or send [], the service selects the default events: monitor.changes.detected and monitor.paused. If you omit secret on a monitor that already has a webhook, the service keeps the current secret. When you add a webhook to a monitor that has none and omit secret, the service creates one. The service returns that secret in webhook.secret in this response. Save this secret to verify deliveries. When you supply a different secret, the service rotates the secret. The service signs deliveries with both the new secret and the old secret for 24 hours. The service never returns a secret that you supply. After you configure the webhook, use Test a monitor’s webhook to check delivery.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

monitor_id
string
required

Monitor identifier (mon_...)

Body

application/json

Send only the fields you want to replace. The service keeps the fields you omit. Send null to clear goal, metadata, or webhook. When you replace an Agent target, repeat the task and the options you want to keep.

name
string
Required string length: 1 - 256
goal
string | null

Replace the goal without changing the Search query or Agent task. The service returns an empty string after you clear the goal.

Maximum string length: 2000
targets
(Search target · object | Page target · object | Agent target · object)[]

Use one of these target configurations:

  • One Search target.
  • One Agent target.
  • One to 10 Page targets with distinct URLs.

Do not mix target types.

Required array length: 1 - 10 elements
schedule
Interval schedule · object
webhook
object | null

Replaces the webhook. Without a secret, keeps the current one, or on a monitor without a webhook generates one and returns it in webhook.secret of this response. A new secret rotates. null removes the webhook; runs continue and nothing is sent.

metadata
object | null

Response

The updated monitor

Fields that do not apply are omitted, never null: webhook, pause_reason, current_run_id, next_run_at and last_run.

id
string
required

Opaque ID with the prefix mon_

Maximum string length: 64
object
enum<string>
required
Available options:
monitor
name
string
required
goal
string
required

The changes you want the monitor to report. The service returns an empty string if you do not set a goal.

targets
(Search target · object | Page target · object | Agent target · object)[]
required

The targets for one monitor. An Agent monitor has exactly one target.

A target for the monitor. Skip targets with a type you do not recognize.

schedule
Interval schedule · object
required

When a monitor runs. New types may be added.

metadata
object
required

Up to 16 key value pairs; keys 1 to 64 characters, values up to 512 characters (Unicode code points, valid UTF-8). Echoed on every webhook.

status
enum<string>
required

active monitors run on their schedule; paused ones don't run until resumed. Whether a run is in flight is current_run_id, not the status. New statuses may be added; treat an unknown one as not running on its schedule.

Available options:
active,
paused
created_at
string<date-time>
required

RFC 3339 in UTC with whole seconds, for example 2026-11-12T09:00:41Z.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
updated_at
string<date-time>
required

RFC 3339 in UTC with whole seconds, for example 2026-11-12T09:00:41Z.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
webhook
object
pause_reason
enum<string>

Only while paused

Available options:
user,
insufficient_credits,
org_policy,
webhook_failing,
source_failing
current_run_id
string

The queued or running run

next_run_at
string<date-time>

Omitted while paused

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
last_run
object

The last finished run