Monitoring & Collection/Scrape Collection
PUTMonitoringSince 1.0SynchronousAuth Required
SetMaintenanceMode
Enable or disable maintenance mode for a scrape target to suppress alerts
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
targetIdStringRequiredUUID of the target to put into or remove from maintenance mode
Body Fields
enabledBooleanRequiredTrue to enable maintenance mode, false to disable
Example: true
reasonStringRequiredReason for entering maintenance mode
Example: scheduled OS upgrade
Responses
Endpoint
PUT/api/v1/monitoring/scrape-health/targets/{targetId}/maintenance
/api/v1/monitoring/scrape-health/targets/{targetId}/maintenance
Request Example
curl -X PUT '{host}/api/v1/monitoring/scrape-health/targets/{targetId}/maintenance' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"enabled":true,"reason":"scheduled OS upgrade"}'
Response Example
200{}Change History
This API has no change history records yet.
