Get Maintenance Schedules

Retrieve the organization's recurring maintenance windows.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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

ParameterTypeDescriptionDefault
pageintegerPage number, starting at 1. Follow next_page in the response until it is null.1
per_pageintegerNumber of results per page. Max: 100.100
space_idintegerOnly the schedules set on this space (not the ones it inherits).
enabledbooleanOnly enabled (true) or disabled (false) schedules.
activebooleanOnly 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):

KeyTypeDescription
idstringUnique identifier of the schedule (UUID).
namestringOptional label for the schedule; null when not set.
daysarrayThe weekdays each window starts on: mon, tue, wed, thu, fri, sat, sun.
startstringStart of each window, HH:MM, local time in timezone.
endstringEnd of each window, HH:MM. An end at or before start runs into the next day; 00:00–24:00 is the whole day.
timezonestringThe IANA time zone start and end are evaluated in: the schedule's space's, else its customer space's, else Etc/UTC.
enabledbooleanA disabled schedule never suppresses incidents.
spaceobjectThe space the schedule is set on: id (integer), name and path.
activebooleanWhether one of the schedule's windows covers the current time.
untilstringWhen the current window ends, in ISO 8601 format (UTC), while active is true; null otherwise.
next_start_atstringStart of the next window of this schedule after now, in ISO 8601 format (UTC); null when none starts within 7 days.
next_end_atstringEnd of that next window, in ISO 8601 format (UTC); null when none starts within 7 days.
created_byobjectid (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_atstringDate and time the schedule was created, in ISO 8601 format.
updated_atstringDate 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

StatusDescription
403Scheduled maintenance is not enabled for your organization: { "error": "Scheduled maintenance is not enabled for this organization" }.
Query Params
integer
≥ 1
Defaults to 1

Page number, starting at 1. Follow next_page in the response until it is null.

integer
1 to 100
Defaults to 100

Number of results per page. Max: 100.

integer
≥ 1

Only the schedules set on this space (not the ones it inherits).

boolean

Only enabled (true) or disabled (false) schedules.

boolean

Only schedules whose own window does (true) or does not (false) cover the current time. A disabled schedule is never active.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json