Schedule a maintenance that repeats daily, weekly or monthly at a local time. Its occurrences appear on the page 14 days ahead; subscribers get one notice per occurrence plus its reminder.
const url = 'https://api.siteqwality.com/status_page/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/maintenance_series';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"example","body":"example","whole_page":true,"affected_http_job_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"reminder_minutes":1,"notify_each_occurrence":true,"timezone":"example","start_time":"example","duration_minutes":1,"frequency":"daily","weekdays":[1],"month_day":1,"starts_on":"example","ends_on":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.siteqwality.com/status_page/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/maintenance_series \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "example", "body": "example", "whole_page": true, "affected_http_job_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "reminder_minutes": 1, "notify_each_occurrence": true, "timezone": "example", "start_time": "example", "duration_minutes": 1, "frequency": "daily", "weekdays": [ 1 ], "month_day": 1, "starts_on": "example", "ends_on": "example" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Status page identifier
Request Body required
Section titled “Request Body required ”A series on create, and its full new state on edit.
object
The whole page is under maintenance. Leave affected_http_job_ids empty.
The monitors under maintenance. Required unless whole_page is true.
Minutes before each start that subscribers get a reminder (5 to 10080). Null sends none.
Tell subscribers about every occurrence (scheduled, reminder, started, completed). By default they hear once, when the series is made or its schedule changes.
IANA zone, e.g. Europe/Berlin.
Local start time, HH:MM.
5 to 10080 minutes; at most 1440 for a daily series.
ISO weekdays, 1 = Monday to 7 = Sunday. Required for weekly; ignored otherwise.
1 to 28. Required for monthly; ignored otherwise.
First day an occurrence may fall on, YYYY-MM-DD in timezone.
Last day an occurrence may fall on. Null repeats with no end.
Responses
Section titled “ Responses ”Series created and its first occurrences made
A maintenance that repeats. Each occurrence is an ordinary maintenance with series_id set,
materialized 14 days ahead. Subscribers hear once per schedule unless notify_each_occurrence.
object
Subscribers hear about every occurrence. False: once when the series is made or rescheduled.
IANA zone the start time and days are read in.
Local start time, HH:MM.
ISO weekdays (1 = Monday), weekly only.
Day of the month (1 to 28), monthly only.
YYYY-MM-DD.
The next occurrence still to start.
Example
{ "frequency": "daily"}Invalid schedule, title, scope or reminder
Missing or invalid authentication
Status page or affected monitor not found
The page already has 25 series
Internal server error