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/
ParametersDetailsDescription
search Optional StringThe search string.
search_by Optional StringWhat field are you searching by. Allowed values are: name.
order_by Optional StringWhat field to order the results by. Allowed values are: maintenance_window_id, name, start_datetime, datetime, last_datetime.
order_type Optional StringThe ordering of the results. Allowed values are: ASC for ascending ordering, and DESC for descending ordering.
page Optional IntegerThe page number that you want results from. Defaults to 1.
results_per_page Optional IntegerHow 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}' \
{
    "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}' \
{
    "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
ParametersDetailsDescription
name Required StringAt most 128 characters.
start_datetime Required StringStart of the first occurrence in UTC.
end_datetime Required StringEnd of the first occurrence in UTC. Once: at most 31 days, recurring: shorter than 24 hours.
timezone Optional StringTimezone of the repetition, e.g. Europe/Berlin.
recurrence Optional StringAllowed: once, daily, weekly.
weekdays[] Optional ArrayFor 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 BooleanAll uptime monitors, heartbeats and server monitors of the account, including future ones.
monitors_ids[] Optional ArrayIDs of your own uptime monitors.
heartbeats_ids[] Optional ArrayIDs of your own heartbeats.
server_monitors_ids[] Optional ArrayIDs of your own server monitors.
announce_is_enabled Optional BooleanAnnounce 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 IntegerAnnouncement this many hours before the start, 0 to 720 (default 24).
public_text Optional StringPublic 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' \
{
    "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}
ParametersDetailsDescription
name Optional StringAt most 128 characters.
start_datetime Optional StringStart of the first occurrence in UTC.
end_datetime Optional StringEnd of the first occurrence in UTC. Once: at most 31 days, recurring: shorter than 24 hours.
timezone Optional StringTimezone of the repetition, e.g. Europe/Berlin.
recurrence Optional StringAllowed: once, daily, weekly.
weekdays[] Optional ArrayFor 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 BooleanAll uptime monitors, heartbeats and server monitors of the account, including future ones.
monitors_ids[] Optional ArrayIDs of your own uptime monitors.
heartbeats_ids[] Optional ArrayIDs of your own heartbeats.
server_monitors_ids[] Optional ArrayIDs of your own server monitors.
announce_is_enabled Optional BooleanAnnounce 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 IntegerAnnouncement this many hours before the start, 0 to 720 (default 24).
public_text Optional StringPublic 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' \
{
    "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}' \