Modifies an existing template. Only modified attributes may be passed in payload. All other attributes will remain unchanged.
Title of event. Can be omitted if body is provided.
Can contain only plain text. HTML tags and other forms of formatting are not allowed.
Templates without title set will ignore event title when applied.
Title of event. Can be omitted if title is provided.
Can contain basic HTML tags and is being interpreted as HTML.
Templates without body set will ignore event body when applied.
Duration of maintenance in minutes.
Maximum allowed value is 99h:59min (5999 minutes).
List of labels for this template. Template can have many labels.
If passing just one label, it should still be passed as an array: "labels": ["some label value"].
- Main US regionhttps://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/maintenance_templates/{maintenance_template_id}
- EU regionhttps://subdomain-of-your-account.app-eu1.statushub.io/api/v3/hubs/{subdomain}/maintenance_templates/{maintenance_template_id}
curl -i -X PUT \
'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/maintenance_templates/{maintenance_template_id}?api_version=V3-R1' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"title": "string",
"body": "string",
"duration": 1,
"labels": [
"string"
],
"service_statuses": [
{
"service_id": 1234,
"status": "down"
}
],
"silent": true
}'OK
Title of event.
Templates without title set will ignore event title when applied.
Timestamp of record creation.
ISO8601 formatted time (UTC).
Timestamp of last modification of record.
ISO8601 formatted time (UTC).
{ "id": 60, "title": "string", "labels": [ "string" ], "flags": { "deleted": true, "silent": true }, "duration": 1, "body": "string", "created_at": "2020-09-01T08:29:00Z", "updated_at": "2020-09-01T08:29:00Z", "author": "string", "service_statuses": [ { … } ] }