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 URL | https://api.alertops.com/api/v2 |
| Authentication | api-key request header |
| Endpoints | 5 |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v2/maintenancewindows | List maintenance windows |
| POST | /api/v2/maintenancewindows | Create 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
| Name | Type | Required | Description |
|---|---|---|---|
maintenanceStatus | string | Optional |
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).
| Field | Type | Required |
|---|---|---|
description | string | Optional |
recurrence | string | Optional |
integration | array of strings | Optional |
start_date | string | Optional |
end_date | string | Optional |
start_time | string | Optional |
end_time | string | Optional |
sunday | boolean | Required |
monday | boolean | Required |
tuesday | boolean | Required |
wednesday | boolean | Required |
thursday | boolean | Required |
friday | boolean | Required |
saturday | boolean | Required |
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
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Maintenance 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
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Maintenance Window ID |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
description | string | Optional |
recurrence | string | Optional |
integration | array of strings | Optional |
start_date | string | Optional |
end_date | string | Optional |
start_time | string | Optional |
end_time | string | Optional |
sunday | boolean | Required |
monday | boolean | Required |
tuesday | boolean | Required |
wednesday | boolean | Required |
thursday | boolean | Required |
friday | boolean | Required |
saturday | boolean | Required |
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
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Required | Maintenance 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"