Maintenance Schedules

Recurring maintenance windows on spaces that hide the incidents opened inside them.

Create, retrieve, update and delete maintenance schedules on spaces. A maintenance schedule is a set of weekdays plus a start and end time in the space's time zone ("every night 02:00–06:00"); each occurrence of it is a window. An incident opened on a device while a window covers its space is created suppressed (hidden): it is left out of the organization incident list and counts and of integrations and notifications, and Get Incidents returns it only with include_suppressed=true. A suppressed incident closed before the window ends stays suppressed; one still open when the window ends is announced then: the same incident, with its original open time, is listed and sent to integrations and notifications as a new incident, and its announced_at is set. All endpoints require a valid organization API key.

Scheduled maintenance is enabled per organization by Xyte. Until it is, every Maintenance Schedules endpoint answers 403 ({ "error": "Scheduled maintenance is not enabled for this organization" }), devices and spaces report no scheduled maintenance, and no incident is hidden.

A schedule set on a space applies to that space and every space below it, and the schedules of a space and its ancestors add up. Manual maintenance (Set Maintenance) is unchanged, and an incident is announced only when neither manual maintenance nor a window covers it any more: turning manual maintenance off while a window still covers the device keeps its incidents suppressed until the window ends, and a window ending while the device is in manual maintenance turns its incidents into maintenance incidents, released when manual maintenance is turned off. A space holds at most 10 schedules. See the Scheduled Maintenance guide for the portal side.

created_by is null unless the call carried a signed-in user: schedules created with an API key, or with an application-only (client-credentials) OAuth token, have a null created_by. Schedules created with an OAuth access token issued to a user, or by users in the organization portal, carry the creating user.