Update a monitor
update_monitorChange one monitor's settings and get the updated monitor back, altering only the fields you pass. Use it to adjust intervals, regions, channels, tags or config without pausing or recreating.
Instructions
Change one monitor's settings and return it in the get_monitor shape. Only the fields you pass change, and at least one besides monitor_id is required (422 otherwise); type and target never change (create a new monitor instead). Not for pausing or resuming (pause_monitor, resume_monitor), for many monitors at once (bulk_update_monitors) or for tags alone across monitors (bulk_update_monitor_tags). Requires a key with the write scope. Plan limits are checked against the result, as on create_monitor (only moving a monitor below 60 seconds takes a fast slot): breaking one is a 403 naming it. change_alerts_enabled turns on change alerts for the monitor (default false): on a DNS monitor, a confirmed NOTICE change of its DNS answers, outside maintenance and not reverted, goes to the monitor's alert channels. Certificate changes send no change alert; they show in the feed and the weekly digest, and a new certificate that stops covering a monitored host sends SSL_COVERAGE_LOST whatever this is set to. Port-list rules are checked against the result too, so changing only the interval or regions of a port-list TCP monitor can be a 422. Omit a field to keep it; never send null. Example: {"monitor_id": "", "interval_seconds": 600}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"monitor_id": "<monitor_id>"
},
"name": "update_monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name, 1 to 255 characters. | |
| tags | No | Replaces the whole tag list when passed, at most 10; [] clears it; omit it to keep the tags. Each tag is trimmed, lowercased and deduplicated on write, at most 50 characters of a-z, 0-9 and : _ . / -, starting with a letter or digit. Reuse names from list_tags rather than inventing near-duplicates. | |
| config | No | Replaces the monitor's whole config, not just the keys you send: a field of the type's schema you leave out resets to its default (read the current one with get_monitor first). Sending only port on a TCP monitor whose expected_state is closed resets it to open. A port-list TCP monitor cannot switch to a single port (422). An object whose fields depend on type, all optional unless stated. HTTP: method (GET, HEAD, POST, PUT, PATCH or DELETE, any case; default GET); expected_status_codes (non-empty list of codes 100 to 599, default [200]); keyword (case-sensitive substring the body must contain, at most 1024 characters, not with HEAD); follow_redirects (default true); verify_ssl (default true; false skips TLS verification, so the monitor can never report TLS_INVALID); request_headers (object of name to value: at most 20, a name at most 128 characters of letters, digits and ! # $ % & ' * + - . ^ _ ` | ~, a value at most 1024 bytes of printable ASCII, space or tab, the whole object at most 8192 bytes as JSON; names differing only in case, and Host, Content-Length, Transfer-Encoding, Connection, Upgrade, TE, Trailer, Keep-Alive, CF-Connecting-IP or any Proxy-* name, are a 422); request_body (string, at most 8192 bytes as UTF-8, needs POST, PUT, PATCH or DELETE). Reads return every request_headers value as the literal __FETTLE_UNCHANGED__; writing that literal back in an update keeps the stored value (on create it is a 422). PING: packet_count (1 to 20, default 4). SSL: warn_before_days (1 to 365, default 14; the first expiry alert, then again at 30, 14, 7 and 1 day left, whichever come after it) and port (1 to 65535, default 443). TCP: either port (1 to 65535) with expected_state "open" (default) or "closed", or ports (1 to 20 distinct ports that must all be closed, which needs expected_state "closed", exactly one region and interval_seconds of at least 300; a check fails when any of them accepts a connection, and the monitor goes DOWN once confirmation_threshold failures confirm it). Both port and ports, or neither, is a 422; expected_state values are lowercase. DNS: record_type (A, AAAA, CNAME, MX, TXT, NS or SRV; required) and expected_value (at most 2048 characters). With expected_value one answer must equal it (case-insensitive, ignoring surrounding spaces and a trailing dot; exact for TXT); without it any answer passes. MX answers are the mail host names without priority (mail.example.com, not 10 mail.example.com). A and AAAA look up every address of the host, IPv4 and IPv6 alike, and any one may match; write an IPv6 address in its shortest form. SRV: the target is the full name (_sip._tcp.example.com) and each answer reads priority weight port target (10 60 5060 sip.example.com); expected_value is either all four fields, which must all match, or target:port (sip.example.com:5060), which ignores priority and weight; any other SRV expected_value is a 422. | |
| regions | No | One or more distinct region codes: the plan's choices are limits.allowed_regions in get_plan_usage. An unknown code, or more regions than max_regions, is a 403. SSL, DNS and TCP monitors with a ports list take exactly one region (422 otherwise). | |
| monitor_id | Yes | The monitor's uuid from list_monitors. An id that is not a monitor of this organization, or a deleted one, is a 404. | |
| channel_ids | No | Notification channel uuids from list_channels; email addresses are channels too. When passed it replaces the whole binding: only the listed channels are alerted, nobody else is emailed implicitly; [] clears it, after which every working channel is alerted; omit it to keep the binding. A newly added id must be an active channel of this organization (else 404); resending a channel that is already bound keeps it even if it is muted, and it gets no alerts while muted. Once every bound channel is deleted, every working channel is alerted. If none of the channels works, the organization's owner is emailed. | |
| badge_enabled | No | Turns the monitor's public status badge on or off. A monitor on a published status page has a badge even when it is false. | |
| timeout_seconds | No | Seconds one check may take before it fails, 1 to 120. | |
| interval_seconds | No | Seconds between checks, 30 to 86400. The plan sets a minimum (limits.min_interval_seconds) and caps how many monitors may check more often than every 60 seconds (max_fast_monitors); breaking either is a 403 naming the limit. | |
| change_alerts_enabled | No | Turns on change alerts for this monitor, default false. On a DNS monitor, a confirmed NOTICE change of its DNS answers, outside maintenance and not reverted, goes to the monitor's alert channels. Certificate changes send no change alert; they show in the feed and the weekly digest, and a new certificate that stops covering a monitored host sends SSL_COVERAGE_LOST whatever this is set to. | |
| domain_expiry_enabled | No | Watch the expiry date of the target's registered domain (RDAP) and alert before it lapses, and when the registry puts the domain on hold or no longer lists it. HTTP monitors whose target is a domain name only, and not a subdomain of a hosting platform such as *.herokuapp.com or *.github.io; any other target is a 422. | |
| confirmation_threshold | No | How many checks in a row must fail in every region before the monitor goes DOWN and an incident opens, 1 to 10; 2 when not set on create. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| tags | No | ||
| type | Yes | Known values: HTTP, PING, SSL, TCP, DNS. | |
| config | Yes | ||
| status | Yes | Known values: PENDING, UP, DEGRADED, DOWN, PAUSED. | |
| target | Yes | ||
| regions | Yes | ||
| user_id | Yes | ||
| is_active | Yes | ||
| created_at | Yes | ||
| resumed_at | Yes | When the monitor was last resumed after a pause; null if it was never resumed. A resume puts the monitor back to PENDING while last_checked_at keeps its pre-pause value. | |
| updated_at | Yes | ||
| channel_ids | No | Bound notification channels. Empty means every working channel of the organization is alerted. | |
| next_run_at | Yes | ||
| badge_enabled | No | ||
| domain_expiry | No | ||
| ssl_cert_info | No | ||
| ssl_expires_at | Yes | ||
| last_checked_at | Yes | ||
| region_statuses | Yes | Per-region latest status, sorted by region name. Built from ``region_snapshots``; ``job_id`` is dropped (internal dedup key) and malformed/partial snapshot rows are skipped rather than failing the read. | |
| timeout_seconds | Yes | ||
| interval_seconds | Yes | ||
| change_alerts_enabled | No | ||
| domain_expiry_enabled | No | ||
| confirmation_threshold | Yes |