Retrieve the organization's recurring maintenance windows.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
This endpoint retrieves the organization's maintenance schedules, oldest first. It sends an HTTP GET request to https://hub.xyte.io/core/v1/organization/maintenance_schedules.
An incident opened on a device while one of a schedule's windows covers its space is suppressed, and announced as a new incident if it is still open when the window ends; see Maintenance Schedules for the details. A schedule set on a space applies to every space below it.
Scheduled maintenance is enabled per organization by Xyte. Until it is, every Maintenance Schedules endpoint answers 403.
Authorization
This endpoint requires Authorization.
Query Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
| page | integer | Page number, starting at 1. Follow next_page in the response until it is null. | 1 |
| per_page | integer | Number of results per page. Max: 100. | 100 |
| space_id | integer | Only the schedules set on this space (not the ones it inherits). | |
| enabled | boolean | Only enabled (true) or disabled (false) schedules. | |
| active | boolean | Only schedules whose own window does (true) or does not (false) cover the current time. A disabled schedule is never active. |
Response
Returns items with the following fields, plus next_page (the next page number, or null on the last page) and total_count (how many schedules match the filters across all pages):
| Key | Type | Description |
|---|---|---|
| id | string | Unique identifier of the schedule (UUID). |
| name | string | Optional label for the schedule; null when not set. |
| days | array | The weekdays each window starts on: mon, tue, wed, thu, fri, sat, sun. |
| start | string | Start of each window, HH:MM, local time in timezone. |
| end | string | End of each window, HH:MM. An end at or before start runs into the next day; 00:00–24:00 is the whole day. |
| timezone | string | The IANA time zone start and end are evaluated in: the schedule's space's, else its customer space's, else Etc/UTC. |
| enabled | boolean | A disabled schedule never suppresses incidents. |
| space | object | The space the schedule is set on: id (integer), name and path. |
| active | boolean | Whether one of the schedule's windows covers the current time. |
| until | string | When the current window ends, in ISO 8601 format (UTC), while active is true; null otherwise. |
| next_start_at | string | Start of the next window of this schedule after now, in ISO 8601 format (UTC); null when none starts within 7 days. |
| next_end_at | string | End of that next window, in ISO 8601 format (UTC); null when none starts within 7 days. |
| created_by | object | id (UUID) and name of the user who created the schedule, or null when the call carried no signed-in user (API key or application-only OAuth token). |
| created_at | string | Date and time the schedule was created, in ISO 8601 format. |
| updated_at | string | Date and time the schedule was last updated, in ISO 8601 format. |
{
"items": [
{
"id": "3c1e2f4a-8b7d-4c6e-9f10-xxxxxxxxxxxx",
"name": "Nightly",
"days": ["mon", "tue", "wed", "thu", "fri"],
"start": "02:00",
"end": "06:00",
"timezone": "Europe/Paris",
"enabled": true,
"space": {
"id": 17517,
"name": "Paris Office",
"path": "Green Energy Corp/France/Paris Office"
},
"active": false,
"until": null,
"next_start_at": "2026-10-21T00:00:00Z",
"next_end_at": "2026-10-21T04:00:00Z",
"created_by": {
"id": "9d2b6a10-4f8e-4c1a-b7d3-xxxxxxxxxxxx",
"name": "Jane Doe"
},
"created_at": "2026-10-20T09:12:44Z",
"updated_at": "2026-10-20T09:12:44Z"
}
],
"next_page": null,
"total_count": 1
}Errors
| Status | Description |
|---|---|
| 403 | Scheduled maintenance is not enabled for your organization: { "error": "Scheduled maintenance is not enabled for this organization" }. |
