Skip to content

Retrieve a Maintenance Template

Request

Returns data about single template.

Security
ApiKeyAuth
Path
subdomainstringrequired

Unique subdomain of requested Hub.

maintenance_template_idintegerrequired

id of the requested Maintenance Template

Query
api_versionstring

Api version

Value:"V3-R1"
curl -i -X GET \
  'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/maintenance_templates/{maintenance_template_id}?api_version=V3-R1' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
idinteger, >= 1
Example:60
titlestring or null

Title of event.
Templates without title set will ignore event title when applied.

labelsArray of strings

List of labels for this template.

flagsobject
durationinteger or null, [ 1 .. 5999 ]

Duration of maintenance in minutes.

bodystring or null

Title of event.
Templates without body set will ignore event body when applied.

created_atstring, (date-time)

Timestamp of record creation.
ISO8601 formatted time (UTC).

Example:"2020-09-01T08:29:00Z"
updated_atstring, (date-time)

Timestamp of last modification of record.
ISO8601 formatted time (UTC).

Example:"2020-09-01T08:29:00Z"
authorstring or null

Author email

service_statusesArray of objects
Response
{ "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": [ { … } ] }