Reference
View as MarkdownMaintenance windows API
6 operations. Every call needs a session cookie or an Authorization: Bearer nct_… token unless marked Public. Conventions, errors and scopes
/maintenance-windowsList maintenance windows
Scheduled maintenance, latest start first.
| Parameter | In | Type | Description |
|---|---|---|---|
phase | query | enum: upcoming | active | past | upcoming: not started; active: running; past: ended or canceled |
pageId | query | string (uuid) | Only windows posted to this status page |
cursor | query | string | Opaque cursor from a previous page's nextCursor |
limit | query | integer (int64) | Page size (default 50, max 200) |
Response 200 · OK · application/json
- MaintenanceWindowView[] | nullrequired
- nextCursorstringPresent when more items exist
400Bad Request401Unauthorized403Forbidden422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/maintenance-windowsSchedule a maintenance window
While the window is active its services are in maintenance: no uptime alerts, and their checks are left out of the availability. The pages it is posted to announce it from 14 days ahead. 422 invalid_window unless endsAt is after startsAt, window_in_past when it ends in the past. Requires the admin scope.
| Parameter | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | Client-chosen key (<=255 chars). A retry with the same key replays the original response for 24 hours. |
Request body · application/json · required
- descriptionstring
- endsAtstring (date-time)requiredAfter startsAt and in the future
- pageIdsstring[] | nullThe status pages that announce it
- serviceIdsstring[] | nullThe services in maintenance while the window is active
- startsAtstring (date-time)required
- titlestringrequired
Response 201 · Created · application/json
- canceledAtstring (date-time) | nullrequired
- createdAtstring (date-time)required
- descriptionstringrequired
- endsAtstring (date-time)required
- idstringrequired
- pageIdsstring[] | nullrequiredThe status pages that announce the window
- phaseenum: upcoming | active | ended | canceledrequired
- serviceIdsstring[] | nullrequiredThe services in maintenance while it is active: no uptime alerts, excluded from availability
- startsAtstring (date-time)required
- titlestringrequired
- updatedAtstring (date-time)required
401Unauthorized403Forbidden404Not Found409Conflict422Unprocessable Entityinvalid_window500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/maintenance-windows/{windowId}Get a maintenance window
| Parameter | In | Type | Description |
|---|---|---|---|
windowIdrequired | path | string |
Response 200 · OK · application/json
- canceledAtstring (date-time) | nullrequired
- createdAtstring (date-time)required
- descriptionstringrequired
- endsAtstring (date-time)required
- idstringrequired
- pageIdsstring[] | nullrequiredThe status pages that announce the window
- phaseenum: upcoming | active | ended | canceledrequired
- serviceIdsstring[] | nullrequiredThe services in maintenance while it is active: no uptime alerts, excluded from availability
- startsAtstring (date-time)required
- titlestringrequired
- updatedAtstring (date-time)required
401Unauthorized403Forbidden422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/maintenance-windows/{windowId}Update a maintenance window
Omitted fields stay. 409 window_ended / window_canceled for a window that is over. Requires the admin scope.
| Parameter | In | Type | Description |
|---|---|---|---|
windowIdrequired | path | string |
Request body · application/json · required
- descriptionstring
- endsAtstring (date-time)
- pageIdsstring[] | nullReplaces the pages; [] clears them
- serviceIdsstring[] | nullReplaces the services; [] clears them
- startsAtstring (date-time)
- titlestring
Response 200 · OK · application/json
- canceledAtstring (date-time) | nullrequired
- createdAtstring (date-time)required
- descriptionstringrequired
- endsAtstring (date-time)required
- idstringrequired
- pageIdsstring[] | nullrequiredThe status pages that announce the window
- phaseenum: upcoming | active | ended | canceledrequired
- serviceIdsstring[] | nullrequiredThe services in maintenance while it is active: no uptime alerts, excluded from availability
- startsAtstring (date-time)required
- titlestringrequired
- updatedAtstring (date-time)required
401Unauthorized403Forbidden404Not Found409Conflictwindow_ended422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/maintenance-windows/{windowId}Delete a maintenance window
Deletes the window. Requires the admin scope.
| Parameter | In | Type | Description |
|---|---|---|---|
windowIdrequired | path | string |
Response 204 · No Content
No body.
401Unauthorized403Forbidden422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.
/maintenance-windows/{windowId}/cancelCancel a maintenance window
Ends the window now (sets canceledAt): its services leave maintenance and the pages stop announcing it. Canceling a canceled window changes nothing; 409 window_ended for one that has already ended. Requires the admin scope.
| Parameter | In | Type | Description |
|---|---|---|---|
windowIdrequired | path | string |
Response 200 · OK · application/json
- canceledAtstring (date-time) | nullrequired
- createdAtstring (date-time)required
- descriptionstringrequired
- endsAtstring (date-time)required
- idstringrequired
- pageIdsstring[] | nullrequiredThe status pages that announce the window
- phaseenum: upcoming | active | ended | canceledrequired
- serviceIdsstring[] | nullrequiredThe services in maintenance while it is active: no uptime alerts, excluded from availability
- startsAtstring (date-time)required
- titlestringrequired
- updatedAtstring (date-time)required
401Unauthorized403Forbidden404Not Found409Conflictwindow_ended422Unprocessable Entity500Internal Server Error
Errors are RFC 9457 application/problem+json with a stable code field.