Update Maintenance Schedule

Change a recurring maintenance window.

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

This endpoint updates a maintenance schedule. It is a partial update: send only the fields to change. It sends an HTTP PATCH request (PUT is accepted too and is also a partial update) to https://hub.xyte.io/core/v1/organization/maintenance_schedules/{id}.

Disabling a schedule or shortening its window releases the incidents it was hiding right away: each one still open is announced as a new incident, unless another window still covers its space or its device is under manual maintenance, in which case it moves to manual maintenance and is announced when that ends. The schedule's space cannot be changed.

Authorization

This endpoint requires Authorization.

Path Parameters

ParameterTypeDescription
idstringUnique identifier of the maintenance schedule (UUID).

Request Body

All fields are optional and follow the rules of Create Maintenance Schedule.

KeyTypeDescription
namestringLabel, up to 255 characters; null clears it.
daysarrayOne or more of mon, tue, wed, thu, fri, sat, sun: the weekdays the window starts on.
startstringHH:MM (00:00–23:59), local time in the space's time zone.
endstringHH:MM (00:00–24:00). An end at or before start runs into the next day; 00:00–24:00 is the whole day. Must differ from start.
enabledbooleanfalse switches the schedule off without deleting it.
{
  "end": "07:00",
  "enabled": false
}

Response

Returns the updated schedule, in the shape of a Get Maintenance Schedules item.

{
  "id": "3c1e2f4a-8b7d-4c6e-9f10-xxxxxxxxxxxx",
  "name": "Nightly",
  "days": ["mon", "tue", "wed", "thu", "fri"],
  "start": "02:00",
  "end": "07:00",
  "timezone": "Europe/Paris",
  "enabled": false,
  "space": {
    "id": 17517,
    "name": "Paris Office",
    "path": "Green Energy Corp/France/Paris Office"
  },
  "active": false,
  "until": null,
  "next_start_at": null,
  "next_end_at": null,
  "created_by": {
    "id": "9d2b6a10-4f8e-4c1a-b7d3-xxxxxxxxxxxx",
    "name": "Jane Doe"
  },
  "created_at": "2026-10-20T09:12:44Z",
  "updated_at": "2026-10-22T15:40:03Z"
}

Errors

StatusDescription
403Scheduled maintenance is not enabled for your organization: { "error": "Scheduled maintenance is not enabled for this organization" }.
404The schedule does not exist or does not belong to your organization.
422days is empty, a day is unknown, a time is malformed, or the change would make start equal to end.
Path Params
string
required

Unique identifier of the maintenance schedule (UUID).

Body Params
string | null

Optional label, up to 255 characters; null clears it.

days
array of strings

One or more of mon, tue, wed, thu, fri, sat, sun: the weekdays the window starts on.

days
Allowed:
string

HH:MM (00:00-23:59), local time in the space's time zone.

string

HH:MM (00:00-24:00). An end at or before start runs into the next day; 00:00-24:00 is the whole day. Must differ from start.

boolean

false switches the schedule off without deleting it.

Responses

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