post
https://hub.xyte.io/core/v1/organization/spaces//maintenance_schedules
Create a recurring maintenance window on a space.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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
| Parameter | Type | Description |
|---|---|---|
| space_id | integer | Unique identifier of the space. |
Request Body
| Key | Type | Description | Required |
|---|---|---|---|
| days | array | One or more of mon, tue, wed, thu, fri, sat, sun: the weekdays the window starts on. | Yes |
| start | string | HH:MM (00:00–23:59), local time in the space's time zone (returned as timezone). | Yes |
| end | 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. | Yes |
| name | string | Optional label, up to 255 characters. | No |
| enabled | boolean | Whether 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
| Status | Description |
|---|---|
| 403 | Scheduled maintenance is not enabled for your organization: { "error": "Scheduled maintenance is not enabled for this organization" }. |
| 404 | The space does not exist or does not belong to your organization. |
| 422 | A 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. |
