v1

latestOpenAPI 3.0.02026-07-142351,1971.3 MB
Downtimes

Cancel downtimes by scope

Delete all downtimes that match the scope of X. Note: This only interacts with Downtimes created using v1 endpoints. This endpoint has been deprecated and will not be replaced. Please use v2 endpoints to find and cancel downtimes.

post/api/v1/downtime/cancel/by_scope

Request body

scopestring required

The scope(s) to which the downtime applies and must be in key:value format. For example, host:app2. Provide multiple scopes as a comma-separated list like env:dev,env:prod. The resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

Example request

{
  "scope": "host:myserver"
}

Response

OK

cancelled_idsinteger[]

ID of downtimes that were canceled.

Example response

{
  "cancelled_ids": [
    123456789,
    123456790
  ]
}