Update monitor
Partially updates a monitor. Only include fields you want to change. Unchanged fields retain their current values. An explicit "type" other than http, tcp, or ping is rejected with 400 (issue #209), the same rule POST /api/v1/monitors enforces; omitting type leaves the stored value untouched and re-validates nothing about it.
Per-account scan heuristic (issue #335): a request that changes url or type is evaluated by the identical port-fan/host-fan heuristic POST /api/v1/monitors uses — see that endpoint's description for the exact signatures, the SCAN_PORTFAN_TCP_THRESHOLD TCP-widened ceiling, and the sliding window. A request that leaves both url and type unchanged never consults the heuristic at all. A port-fan trip returns 403 (see "Account suspended" below); a host-fan trip returns 429 with the same HostFanError body and headers POST /api/v1/monitors documents (see "Rate limit exceeded" below) — this endpoint's 429 never includes the creation-cap case, since there is no per-route creation limiter on PUT.
Request
- Base URL: https://api.uptimemonitoring.com
- URL: https://api.uptimemonitoring.com/api/v1/monitors/{monitorID}
- Auth: HTTP bearer
Path parameters
Monitor ID.
Request body
Example request
{
"maintenance": {
"start_time": "23:00",
"end_time": "03:00",
"timezone": "Europe/Lisbon"
}
}Response
Monitor updated.
Example response
{
"monitor": {
"name": "Production API",
"url": "https://api.example.com/health",
"interval_sec": 60,
"expected_status": "200",
"maintenance": {
"start_time": "23:00",
"end_time": "03:00",
"timezone": "Europe/Lisbon"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.