POST/v1/status_pages/{status_page_id}/scheduled_maintenance
Schedule maintenance for a status page
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
status_page_id:string
Status Page ID
Body parameters
title:string
Title of the scheduled maintenance
description:string
Description of the scheduled maintenance
start_date:string(date-time)
When the scheduled maintenance is expected to start (ISO 8601)
duration_minutes:integer
How long (in minutes) the maintenance is expected to last
components_affected:string[]optional
Component IDs affected by this maintenance
notifications:objectoptional
Notification settings for subscribers
Responses
| Status | Meaning | Description |
|---|---|---|
| 201 | Created | Returns the newly created scheduled maintenance |
| 400 | Bad Request | Bad Request - validation error |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
result:object
success:boolean
Whether the API call was successful
errors:object[]
messages:object[]
Request
POST
/v1/status_pages/{status_page_id}/scheduled_maintenancecurl --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' \
--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": []
}
GET/v1/status_pages/{status_page_id}/scheduled_maintenance/{scheduled_maintenance_id}
Retrieve a scheduled maintenance
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
status_page_id:string
Status Page ID
scheduled_maintenance_id:string
Scheduled Maintenance ID
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the scheduled maintenance |
| 404 | Not Found | Not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
result:object
success:boolean
Whether the API call was successful
errors:object[]
messages:object[]
Request
GET
/v1/status_pages/{status_page_id}/scheduled_maintenance/{scheduled_maintenance_id}curl --request GET \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/scheduled_maintenance/sm1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
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": []
}
PATCH/v1/status_pages/{status_page_id}/scheduled_maintenance/{scheduled_maintenance_id}
Update a scheduled maintenance (only before it has started)
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
status_page_id:string
Status Page ID
scheduled_maintenance_id:string
Scheduled Maintenance ID
Body parameters
title:stringoptional
Updated title
start_date:string(date-time)optional
Updated start date (ISO 8601)
duration_minutes:integeroptional
Updated duration in minutes
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the updated scheduled maintenance |
| 400 | Bad Request | Bad Request - cannot update after maintenance has started |
| 404 | Not Found | Not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
result:object
success:boolean
Whether the API call was successful
errors:object[]
messages:object[]
Request
PATCH
/v1/status_pages/{status_page_id}/scheduled_maintenance/{scheduled_maintenance_id}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' \
--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/v1/status_pages/{status_page_id}/scheduled_maintenance/{scheduled_maintenance_id}
Delete a scheduled maintenance
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
status_page_id:string
Status Page ID
scheduled_maintenance_id:string
Scheduled Maintenance ID
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the deleted scheduled maintenance's ID |
| 404 | Not Found | Not found |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
result:object
success:boolean
Whether the API call was successful
errors:object[]
messages:object[]
Request
DELETE
/v1/status_pages/{status_page_id}/scheduled_maintenance/{scheduled_maintenance_id}curl --request DELETE \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/scheduled_maintenance/sm1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
Response
{
"result": {
"id": "sm1b2c3d4"
},
"success": true,
"errors": [],
"messages": []
}