Skip to content
  • There are no suggestions because the search field is empty.

Maintenance Windows API

The Maintenance Windows API allows you to schedule and manage maintenance windows for specific integrations.

The Maintenance Windows API allows you to schedule and manage maintenance windows for specific integrations.

Base URLhttps://api.alertops.com/api/v2
Authenticationapi-key request header
Endpoints5

Endpoints

MethodPathDescription
GET/api/v2/maintenancewindowsList maintenance windows
POST/api/v2/maintenancewindowsCreate a maintenance window
GET/api/v2/maintenancewindows/{id}Get a maintenance window
PUT/api/v2/maintenancewindows/{id}Update a maintenance window
DELETE/api/v2/maintenancewindows/{id}Delete a maintenance window

List maintenance windows

GET /api/v2/maintenancewindows

Query parameters

NameTypeRequiredDescription
maintenanceStatusstringOptional 

Responses

200 OK

[
  {
    "maintenance_window_id": 180,
    "description": "test",
    "recurrence": "Once",
    "integration": [
      "7A_V2"
    ],
    "start_date": "2020-10-06",
    "end_date": "2020-10-06",
    "start_time": "06:00",
    "end_time": "23:59",
    "sunday": false,
    "monday": false,
    "tuesday": false,
    "wednesday": false,
    "thursday": false,
    "friday": false,
    "saturday": false,
    "status": "Current"
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/maintenancewindows" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Create a maintenance window

POST /api/v2/maintenancewindows

Request body

JSON object (required).

FieldTypeRequired
descriptionstringOptional
recurrencestringOptional
integrationarray of stringsOptional
start_datestringOptional
end_datestringOptional
start_timestringOptional
end_timestringOptional
sundaybooleanRequired
mondaybooleanRequired
tuesdaybooleanRequired
wednesdaybooleanRequired
thursdaybooleanRequired
fridaybooleanRequired
saturdaybooleanRequired

Example body

{
  "description": "string",
  "recurrence": "string",
  "integration": [
    "string"
  ],
  "start_date": "string",
  "end_date": "string",
  "start_time": "string",
  "end_time": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true
}

Responses

200 OK

401 Unauthorized · missing or invalid api-key

Example request

curl -X POST "https://api.alertops.com/api/v2/maintenancewindows" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "string",
  "recurrence": "string",
  "integration": [
    "string"
  ],
  "start_date": "string",
  "end_date": "string",
  "start_time": "string",
  "end_time": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true
}'

Get a maintenance window

GET /api/v2/maintenancewindows/{id}

Path parameters

NameTypeRequiredDescription
idintegerRequiredMaintenance Window ID

Responses

200 OK

{
  "maintenance_window_id": 180,
  "description": "test",
  "recurrence": "Once",
  "integration": [
    {
      "id": 1708,
      "name": "7A_V2"
    }
  ],
  "start_date": "2020-10-06",
  "end_date": "2020-10-06",
  "start_time": "06:00",
  "end_time": "23:59",
  "sunday": false,
  "monday": false,
  "tuesday": false,
  "wednesday": false,
  "thursday": false,
  "friday": false,
  "saturday": false,
  "status": "Current"
}

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/maintenancewindows/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Update a maintenance window

PUT /api/v2/maintenancewindows/{id}

Path parameters

NameTypeRequiredDescription
idintegerRequiredMaintenance Window ID

Request body

JSON object (required).

FieldTypeRequired
descriptionstringOptional
recurrencestringOptional
integrationarray of stringsOptional
start_datestringOptional
end_datestringOptional
start_timestringOptional
end_timestringOptional
sundaybooleanRequired
mondaybooleanRequired
tuesdaybooleanRequired
wednesdaybooleanRequired
thursdaybooleanRequired
fridaybooleanRequired
saturdaybooleanRequired

Example body

{
  "description": "string",
  "recurrence": "string",
  "integration": [
    "string"
  ],
  "start_date": "string",
  "end_date": "string",
  "start_time": "string",
  "end_time": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true
}

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X PUT "https://api.alertops.com/api/v2/maintenancewindows/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "string",
  "recurrence": "string",
  "integration": [
    "string"
  ],
  "start_date": "string",
  "end_date": "string",
  "start_time": "string",
  "end_time": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true
}'

Delete a maintenance window

DELETE /api/v2/maintenancewindows/{id}

Path parameters

NameTypeRequiredDescription
idintegerRequiredMaintenance Window ID

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X DELETE "https://api.alertops.com/api/v2/maintenancewindows/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"