Schedule maintenance for a status page
Requires STATUS_PAGES:EDIT; EDIT also grants READ. Session cookies are accepted only when no bearer credential is supplied.
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Header parameters
Path parameters
Body parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 201 | Created | Returns the newly created scheduled maintenance |
| 400 | Bad Request | Bad Request - validation error |
| 401 | Unauthorized | Missing or invalid credentials |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource not found, unavailable, or rejected by the domain operation |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request POST \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/scheduled_maintenance \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--header 'X-OnlineOrNot-Organisation: string' \
--data '{"title":"Database upgrade","description":"Upgrading to PostgreSQL 16","start_date":"2024-03-01T02:00:00.000Z","duration_minutes":60,"components_affected":["comp_abc123","comp_def456"],"notifications":{"an_hour_before":false,"at_start":true,"at_end":true}}'
Response
{
"result": {
"id": "a1b2c3d4",
"title": "API is inaccessible",
"impact": "MAJOR_OUTAGE",
"started": "2021-01-01T00:00:00.000Z",
"ended": "2021-02-01T00:00:00.000Z",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-02-01T00:00:00.000Z",
"start_date": "2021-01-01T00:00:00.000Z",
"duration_minutes": 60,
"notifications": {
"an_hour_before": false,
"at_start": true,
"at_end": true
},
"components": [
{
"id": "comp123",
"name": "API Server"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Retrieve a scheduled maintenance
Requires STATUS_PAGES:READ; EDIT also grants READ. Session cookies are accepted only when no bearer credential is supplied.
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Header parameters
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the scheduled maintenance |
| 400 | Bad Request | Invalid request |
| 401 | Unauthorized | Missing or invalid credentials |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request GET \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/scheduled_maintenance/sm1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'X-OnlineOrNot-Organisation: string'
Response
{
"result": {
"id": "a1b2c3d4",
"title": "API is inaccessible",
"impact": "MAJOR_OUTAGE",
"started": "2021-01-01T00:00:00.000Z",
"ended": "2021-02-01T00:00:00.000Z",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-02-01T00:00:00.000Z",
"start_date": "2021-01-01T00:00:00.000Z",
"duration_minutes": 60,
"notifications": {
"an_hour_before": false,
"at_start": true,
"at_end": true
},
"components": [
{
"id": "comp123",
"name": "API Server"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Update a scheduled maintenance (only before it has started)
Requires STATUS_PAGES:EDIT; EDIT also grants READ. Session cookies are accepted only when no bearer credential is supplied.
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Header parameters
Path parameters
Body parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the updated scheduled maintenance |
| 400 | Bad Request | Bad Request - cannot update after maintenance has started |
| 401 | Unauthorized | Missing or invalid credentials |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request PATCH \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/scheduled_maintenance/sm1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--header 'X-OnlineOrNot-Organisation: string' \
--data '{"title":"Database upgrade v2","start_date":"2024-03-02T02:00:00.000Z","duration_minutes":120}'
Response
{
"result": {
"id": "a1b2c3d4",
"title": "API is inaccessible",
"impact": "MAJOR_OUTAGE",
"started": "2021-01-01T00:00:00.000Z",
"ended": "2021-02-01T00:00:00.000Z",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-02-01T00:00:00.000Z",
"start_date": "2021-01-01T00:00:00.000Z",
"duration_minutes": 60,
"notifications": {
"an_hour_before": false,
"at_start": true,
"at_end": true
},
"components": [
{
"id": "comp123",
"name": "API Server"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Delete a scheduled maintenance
Requires STATUS_PAGES:EDIT; EDIT also grants READ. Session cookies are accepted only when no bearer credential is supplied.
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Header parameters
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the deleted scheduled maintenance's ID |
| 400 | Bad Request | Invalid request |
| 401 | Unauthorized | Missing or invalid credentials |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request DELETE \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/scheduled_maintenance/sm1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'X-OnlineOrNot-Organisation: string'
Response
{
"result": {
"id": "sm1b2c3d4"
},
"success": true,
"errors": [],
"messages": []
}