Modifies an existing Maintenance. Only modified attributes may be passed in payload. All other attributes will remain unchanged.
Title of event.
Can contain only plain text. HTML tags and other forms of formatting are not allowed.
Timestamp of event start.
ISO8601 formatted time (UTC).
Timestamp of event end.
ISO8601 formatted time (UTC).
When true notifications are not being sent to subscribers.
Does not impact draft notifications for Team Members.
State of Maintenance event:
draft- Not published on Hub Page. Draft will result in draft notifications being sent to Team Members,published- Published on Hub Page.
When true for the duration of maintenance all Incidents and Incident Updates created through automation (API, integrations) will not be published.
Depending on configuration such Incidents will be either:
- saved as draft,
- ignored.
Describes additional notifications to be sent at specific offset from maintenance start or end.
- Main US regionhttps://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/maintenances/{maintenance_id}
- EU regionhttps://subdomain-of-your-account.app-eu1.statushub.io/api/v3/hubs/{subdomain}/maintenances/{maintenance_id}
curl -i -X PUT \
'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/maintenances/{maintenance_id}?api_version=V3-R1' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"title": "Title of the event",
"start_time": "2020-09-01T08:29:00Z",
"end_time": "2020-09-01T08:29:00Z",
"service_statuses": [
{
"service_id": 1234,
"status": "down"
}
],
"body": "Message for an event or event update.<br>\nMay contain basic HTML tags.\n",
"silent": false,
"state": "draft",
"suppress_events": true,
"event_repeat": {
"interval": "day",
"interval_options": {
"enabled_days": "0,2,5",
"type": "day_of_month"
},
"end_on": "2020-09-01T08:29:00Z"
},
"event_notifications": [
{
"offset_in_min": -60,
"offset_type": "start"
}
],
"recurring": {
"update_following": true
}
}'OK
Timestamp of record creation.
ISO8601 formatted time (UTC).
Title of event.
Can contain only plain text. HTML tags and other forms of formatting are not allowed.
Describes additional notifications to be sent at specific offset from maintenance start or end.
Timestamp of event start.
ISO8601 formatted time (UTC).
Timestamp of event end.
ISO8601 formatted time (UTC).
{ "id": "string", "author": "string", "created_at": "2020-09-01T08:29:00Z", "title": "Title of the event", "body": "Message for an event or event update.<br>\nMay contain basic HTML tags.\n", "event_repeat": { "interval": "day", "interval_options": { … }, "end_on": "2020-09-01T08:29:00Z" }, "event_notifications": [ { … } ], "service_statuses": [ { … } ], "start_time": "2020-09-01T08:29:00Z", "end_time": "2020-09-01T08:29:00Z", "flags": { "deleted": true, "draft": true }, "updated_at": "2020-09-01T08:29:00Z" }