To update the status, include the
monitor_id
in the path and provide the enabled
flag in the request body, set to true
to activate the monitor or false
to deactivate it.When to use this:
- Scheduled maintenance — Temporarily disable monitoring to avoid false-positive alerts during planned downtimes.
- Service deactivation — Pause monitoring for services that are temporarily offline or in standby mode.
- Reactivation — Re-enable monitors once the related service is stable and ready to be tracked again.
This functionality is useful for reducing alert noise, maintaining clean uptime logs, and ensuring accurate incident tracking without losing historical data tied to the monitor.
Authorization: Bearer YOUR_TOKEN
Expected Behavior:
- On success, the status of the uptime resource will be updated, and a confirmation message will be returned.
- If the request is unauthorized or the provided ID is invalid, an error message will be returned, specifying the issue.