v1

latestOpenAPI 3.0.02026-08-0650184174.6 KB
Maintenance

Create new maintenance window.

post/maintenance

Request body

descriptionstring required

Description

frominteger required

Initial maintenance window start. Format UNIX time. (Only future allowed. Use 1 for the current timestamp.)

tointeger required

Initial maintenance window end. Format UNIX time. (Only future allowed. Use 1 for the current timestamp.)

recurrencetype'none' | 'day' | 'week' | 'month'

Type of recurrence.

repeateveryinteger

Repeat every n-th day/week/month

effectivetointeger

Recurrence end. Format UNIX time. Default: equal to to. (Only future allowed. Use 1 for the current timestamp.)

uptimeidsinteger[]

Identifiers of uptime checks to assign to the maintenance window - Comma separated Integers

tmsidsinteger[]

Identifiers of transaction checks to assign to the maintenance window - Comma separated Integers

Example request

{
  "description": "New maintenance window.",
  "from": 1500471702,
  "to": 1500475302,
  "recurrencetype": "week",
  "effectiveto": 1500475302,
  "uptimeids": [
    1234567,
    3456789
  ],
  "tmsids": [
    1234567,
    3456789
  ]
}

Response

Successful HTTP Response

Example response

{
  "maintenance": {
    "id": 777
  }
}