Create Maintenance Schedule

Create a recurring maintenance window on a space.

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

This endpoint creates a maintenance schedule (recurring maintenance windows) on a space. It applies to the space and every space below it. It sends an HTTP POST request to https://hub.xyte.io/core/v1/organization/spaces/{space_id}/maintenance_schedules.

A space holds at most 10 schedules. The space comes from the path only; a schedule cannot be moved to another space afterwards. created_by is null unless the call carried a signed-in user (see Maintenance Schedules).

Authorization

This endpoint requires Authorization.

Path Parameters

ParameterTypeDescription
space_idintegerUnique identifier of the space.

Request Body

KeyTypeDescriptionRequired
daysarrayOne or more of mon, tue, wed, thu, fri, sat, sun: the weekdays the window starts on.Yes
startstringHH:MM (00:00–23:59), local time in the space's time zone (returned as timezone).Yes
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.Yes
namestringOptional label, up to 255 characters.No
enabledbooleanWhether the schedule is in effect. Default true.No
{
  "name": "Nightly",
  "days": ["mon", "tue", "wed", "thu", "fri"],
  "start": "02:00",
  "end": "06:00"
}

Response

Returns the created 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": "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": null,
  "created_at": "2026-10-20T09:12:44Z",
  "updated_at": "2026-10-20T09:12:44Z"
}

Errors

StatusDescription
403Scheduled maintenance is not enabled for your organization: { "error": "Scheduled maintenance is not enabled for this organization" }.
404The space does not exist or does not belong to your organization.
422A required field is missing, days is empty, a day is unknown, a time is malformed, start equals end, or the space already has 10 schedules.
Path Params
integer
required

Unique identifier of the space.

Body Params
string | null

Optional label, up to 255 characters.

days
array of strings
required

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

days*
Allowed:
string
required

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

string
required

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

Default true.

Responses

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