Downtimes
Returns a list of downtimes in your organization.
Matches downtimes with any of these UUIDs.
Matches downtimes on any of these machines.
Matches downtimes observed at or after this time.
2023-07-19T19:39:46.735269+02:00Matches downtimes observed up to this time.
active matches downtimes whose reason is active, archived those whose reason is archived. Neither matches unlabeled downtimes.
Caps the page size. Defaults to 1000, which is also the maximum; a value below 1 or above 1000 is rejected.
1000Successful Response
Validation Error
GET /api/v2/downtimes HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"machine": "123e4567-e89b-12d3-a456-426614174000",
"comment": "text",
"type": "THRESHOLD",
"updated": {
"first_name": "text",
"last_name": "text",
"timestamp": "2026-01-01T00:00:00.000Z"
},
"reason": {
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"category": "PLANNED",
"group": "text",
"state": "active",
"catalog": "123e4567-e89b-12d3-a456-426614174000"
},
"start": "2026-01-01T00:00:00.000Z",
"end": "2026-01-01T00:00:00.000Z"
}
],
"metadata": {
"next_cursor": "text"
}
}Apply a downtime reason to every downtime matching filters (the same filters as GET /downtimes — e.g. reason_state=archived to target downtimes whose reason was archived). The response reports how many downtimes were relabeled and which machines they belong to. Pass dry_run=true to preview that scope without changing anything.
If true, nothing is changed; the response reports what a real update would affect.
falseSuccessful Response
Number of downtimes the reason was applied to.
The machines those downtimes belong to — the scope of the change.
Bad Request
Not Found
Conflict
Validation Error
PATCH /api/v2/downtimes/bulk HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 321
{
"filters": {
"uuid": [
"123e4567-e89b-12d3-a456-426614174000"
],
"machine": [
"123e4567-e89b-12d3-a456-426614174000"
],
"start": "2023-07-19T19:39:46.735269+02:00",
"end": "2026-01-01T00:00:00.000Z",
"reason": [
"123e4567-e89b-12d3-a456-426614174000"
],
"reason_state": "active"
},
"update": {
"reason": "123e4567-e89b-12d3-a456-426614174000"
}
}{
"affected_count": 1,
"affected_machines": [
"123e4567-e89b-12d3-a456-426614174000"
]
}Zuletzt aktualisiert