Maintenance windows
Times in UTC (Y-m-d H:i:s). Repetitions follow the local time of the timezone field (default: the account timezone), also across daylight saving changes.
GET https://peaknode.de/api/maintenance-windows/
| Parameters | Details | Description |
|---|---|---|
| search | Optional String | The search string. |
| search_by | Optional String | What field are you searching by. Allowed values are: name. |
| order_by | Optional String | What field to order the results by. Allowed values are: maintenance_window_id, name, start_datetime, datetime, last_datetime. |
| order_type | Optional String | The ordering of the results. Allowed values are: ASC for ascending ordering, and DESC for descending ordering. |
| page | Optional Integer | The page number that you want results from. Defaults to 1. |
| results_per_page | Optional Integer | How many results you want per page. Allowed values are: 10, 25, 50, 100, 250, 500, 1000. Defaults to 25. |
curl --request GET \
--url 'https://peaknode.de/api/maintenance-windows/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://peaknode.de/api/maintenance-windows/' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [{
"id": 1,
"user_id": 1,
"name": "Treiber-Update GPU-Cluster",
"start_datetime": "2026-11-15 01:00:00",
"end_datetime": "2026-11-15 03:00:00",
"timezone": "Europe/Berlin",
"recurrence": "weekly",
"weekdays": [7],
"is_all": false,
"monitors_ids": [1, 2],
"heartbeats_ids": [],
"server_monitors_ids": [3],
"announce_is_enabled": true,
"announce_hours": 24,
"public_text": "Geplante Wartung der Inferenz-API.",
"is_active": false,
"next_start_datetime": "2026-11-15 01:00:00",
"next_end_datetime": "2026-11-15 03:00:00",
"last_datetime": null,
"datetime": "2026-11-28 03:28:20"
}],
"meta": {
"page": 1,
"total_pages": 1,
"results_per_page": 25,
"total_results": 1
},
"links": {
"self": "https://peaknode.de/api/maintenance-windows?page=1"
}
}
GET https://peaknode.de/api/maintenance-windows/{maintenance_window_id}
curl --request GET \
--url 'https://peaknode.de/api/maintenance-windows/{maintenance_window_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://peaknode.de/api/maintenance-windows/{maintenance_window_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"user_id": 1,
"name": "Treiber-Update GPU-Cluster",
"start_datetime": "2026-11-15 01:00:00",
"end_datetime": "2026-11-15 03:00:00",
"timezone": "Europe/Berlin",
"recurrence": "weekly",
"weekdays": [7],
"is_all": false,
"monitors_ids": [1, 2],
"heartbeats_ids": [],
"server_monitors_ids": [3],
"announce_is_enabled": true,
"announce_hours": 24,
"public_text": "Geplante Wartung der Inferenz-API.",
"is_active": false,
"next_start_datetime": "2026-11-15 01:00:00",
"next_end_datetime": "2026-11-15 03:00:00",
"last_datetime": null,
"datetime": "2026-11-28 03:28:20"
}
}
POST https://peaknode.de/api/maintenance-windows
| Parameters | Details | Description |
|---|---|---|
| name | Required String | At most 128 characters. |
| start_datetime | Required String | Start of the first occurrence in UTC. |
| end_datetime | Required String | End of the first occurrence in UTC. Once: at most 31 days, recurring: shorter than 24 hours. |
| timezone | Optional String | Timezone of the repetition, e.g. Europe/Berlin. |
| recurrence | Optional String | Allowed: once, daily, weekly. |
| weekdays[] | Optional Array | For weekly: 1 (Monday) to 7 (Sunday). Occurrences only on these days, from the date of start_datetime in the local time of timezone. |
| is_all | Optional Boolean | All uptime monitors, heartbeats and server monitors of the account, including future ones. |
| monitors_ids[] | Optional Array | IDs of your own uptime monitors. |
| heartbeats_ids[] | Optional Array | IDs of your own heartbeats. |
| server_monitors_ids[] | Optional Array | IDs of your own server monitors. |
| announce_is_enabled | Optional Boolean | Announce on status pages and notify their subscribers (at most 3 occurrences per window and 10 maintenance emails per status page within 24 hours). |
| announce_hours | Optional Integer | Announcement this many hours before the start, 0 to 720 (default 24). |
| public_text | Optional String | Public notice text, at most 2000 characters. |
curl --request POST \
--url 'https://peaknode.de/api/maintenance-windows' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Treiber-Update GPU-Cluster' \
--form 'start_datetime=2026-11-15 01:00:00' \
--form 'end_datetime=2026-11-15 03:00:00' \
--form 'recurrence=weekly' \
--form 'weekdays[]=7' \
--form 'monitors_ids[]=1' \
--form 'server_monitors_ids[]=3' \
--form 'announce_is_enabled=1' \
--url 'https://peaknode.de/api/maintenance-windows' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Treiber-Update GPU-Cluster' \
--form 'start_datetime=2026-11-15 01:00:00' \
--form 'end_datetime=2026-11-15 03:00:00' \
--form 'recurrence=weekly' \
--form 'weekdays[]=7' \
--form 'monitors_ids[]=1' \
--form 'server_monitors_ids[]=3' \
--form 'announce_is_enabled=1' \
{
"data": {
"id": 1,
"user_id": 1,
"name": "Treiber-Update GPU-Cluster",
"start_datetime": "2026-11-15 01:00:00",
"end_datetime": "2026-11-15 03:00:00",
"timezone": "Europe/Berlin",
"recurrence": "weekly",
"weekdays": [7],
"is_all": false,
"monitors_ids": [1, 2],
"heartbeats_ids": [],
"server_monitors_ids": [3],
"announce_is_enabled": true,
"announce_hours": 24,
"public_text": "Geplante Wartung der Inferenz-API.",
"is_active": false,
"next_start_datetime": "2026-11-15 01:00:00",
"next_end_datetime": "2026-11-15 03:00:00",
"last_datetime": null,
"datetime": "2026-11-28 03:28:20"
}
}
POST https://peaknode.de/api/maintenance-windows/{maintenance_window_id}
| Parameters | Details | Description |
|---|---|---|
| name | Optional String | At most 128 characters. |
| start_datetime | Optional String | Start of the first occurrence in UTC. |
| end_datetime | Optional String | End of the first occurrence in UTC. Once: at most 31 days, recurring: shorter than 24 hours. |
| timezone | Optional String | Timezone of the repetition, e.g. Europe/Berlin. |
| recurrence | Optional String | Allowed: once, daily, weekly. |
| weekdays[] | Optional Array | For weekly: 1 (Monday) to 7 (Sunday). Occurrences only on these days, from the date of start_datetime in the local time of timezone. |
| is_all | Optional Boolean | All uptime monitors, heartbeats and server monitors of the account, including future ones. |
| monitors_ids[] | Optional Array | IDs of your own uptime monitors. |
| heartbeats_ids[] | Optional Array | IDs of your own heartbeats. |
| server_monitors_ids[] | Optional Array | IDs of your own server monitors. |
| announce_is_enabled | Optional Boolean | Announce on status pages and notify their subscribers (at most 3 occurrences per window and 10 maintenance emails per status page within 24 hours). |
| announce_hours | Optional Integer | Announcement this many hours before the start, 0 to 720 (default 24). |
| public_text | Optional String | Public notice text, at most 2000 characters. |
Fields that are not sent stay unchanged. Lists of resources that are not sent drop resources that have been deleted since; lists that are sent may only contain your own existing resources.
curl --request POST \
--url 'https://peaknode.de/api/maintenance-windows/{maintenance_window_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'end_datetime=2026-11-15 04:00:00' \
--url 'https://peaknode.de/api/maintenance-windows/{maintenance_window_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'end_datetime=2026-11-15 04:00:00' \
{
"data": {
"id": 1,
"user_id": 1,
"name": "Treiber-Update GPU-Cluster",
"start_datetime": "2026-11-15 01:00:00",
"end_datetime": "2026-11-15 03:00:00",
"timezone": "Europe/Berlin",
"recurrence": "weekly",
"weekdays": [7],
"is_all": false,
"monitors_ids": [1, 2],
"heartbeats_ids": [],
"server_monitors_ids": [3],
"announce_is_enabled": true,
"announce_hours": 24,
"public_text": "Geplante Wartung der Inferenz-API.",
"is_active": false,
"next_start_datetime": "2026-11-15 01:00:00",
"next_end_datetime": "2026-11-15 03:00:00",
"last_datetime": null,
"datetime": "2026-11-28 03:28:20"
}
}
DELETE https://peaknode.de/api/maintenance-windows/{maintenance_window_id}
curl --request DELETE \
--url 'https://peaknode.de/api/maintenance-windows/{maintenance_window_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://peaknode.de/api/maintenance-windows/{maintenance_window_id}' \
--header 'Authorization: Bearer {api_key}' \