List all updates for an incident
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
Query parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns a list of updates for the incident. May also return a canonical failure envelope with success: false at HTTP200. |
| 400 | Bad Request | Invalid request |
| 401 | Unauthorized | Unauthenticated |
| 403 | Forbidden | Unauthorized |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request GET \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'X-OnlineOrNot-Organisation: string'
Response
{
"result": [
{
"id": "e5f6g7h8",
"incident_id": "a1b2c3d4",
"status": "INVESTIGATING",
"description": "We are investigating reports of connectivity issues",
"date_happened": "2021-01-01T00:00:00.000Z",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z",
"components": [
{
"id": "comp123",
"name": "API Server",
"old_status": "OPERATIONAL",
"new_status": "MAJOR_OUTAGE"
}
]
}
],
"result_info": {
"page": 1,
"per_page": 20,
"count": 1,
"total_count": 1
},
"success": true,
"errors": [],
"messages": []
}
Create a new update for an incident
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 incident update |
| 400 | Bad Request | Bad Request |
| 401 | Unauthorized | Unauthenticated |
| 403 | Forbidden | Unauthorized |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request POST \
--url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--header 'X-OnlineOrNot-Organisation: string' \
--data '{"status":"INVESTIGATING","description":"We are investigating reports of connectivity issues","notify_subscribers":true,"components_affected":[{"id":"a1b2c3d4","status":"MAJOR_OUTAGE"}],"date_happened":"2021-01-01T00:00:00.000Z"}'
Response
{
"result": {
"id": "e5f6g7h8",
"incident_id": "a1b2c3d4",
"status": "INVESTIGATING",
"description": "We are investigating reports of connectivity issues",
"date_happened": "2021-01-01T00:00:00.000Z",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z",
"components": [
{
"id": "comp123",
"name": "API Server",
"old_status": "OPERATIONAL",
"new_status": "MAJOR_OUTAGE"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Retrieve a single incident update
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 incident update |
| 400 | Bad Request | Invalid request |
| 401 | Unauthorized | Unauthenticated |
| 403 | Forbidden | Unauthorized |
| 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/incidents/a1b2c3d4/updates/e5f6g7h8 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'X-OnlineOrNot-Organisation: string'
Response
{
"result": {
"id": "e5f6g7h8",
"incident_id": "a1b2c3d4",
"status": "INVESTIGATING",
"description": "We are investigating reports of connectivity issues",
"date_happened": "2021-01-01T00:00:00.000Z",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z",
"components": [
{
"id": "comp123",
"name": "API Server",
"old_status": "OPERATIONAL",
"new_status": "MAJOR_OUTAGE"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Update an existing incident update
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 incident update |
| 400 | Bad Request | Bad Request |
| 401 | Unauthorized | Unauthenticated |
| 403 | Forbidden | Unauthorized |
| 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/incidents/a1b2c3d4/updates/e5f6g7h8 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--header 'X-OnlineOrNot-Organisation: string' \
--data '{"status":"IDENTIFIED","description":"The issue has been identified","date_happened":"2021-01-01T00:00:00.000Z"}'
Response
{
"result": {
"id": "e5f6g7h8",
"incident_id": "a1b2c3d4",
"status": "INVESTIGATING",
"description": "We are investigating reports of connectivity issues",
"date_happened": "2021-01-01T00:00:00.000Z",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z",
"components": [
{
"id": "comp123",
"name": "API Server",
"old_status": "OPERATIONAL",
"new_status": "MAJOR_OUTAGE"
}
]
},
"success": true,
"errors": [],
"messages": []
}
Delete an incident update
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 incident update's ID |
| 400 | Bad Request | Invalid request |
| 401 | Unauthorized | Unauthenticated |
| 403 | Forbidden | Unauthorized |
| 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/incidents/a1b2c3d4/updates/e5f6g7h8 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'X-OnlineOrNot-Organisation: string'
Response
{
"result": {
"id": "e5f6g7h8"
},
"success": true,
"errors": [],
"messages": []
}