export const metadata = {
  title: "Status Page Incident Updates - OnlineOrNot API Documentation",
  description:
    "Post timeline updates to active incidents",
}

## List all updates for an incident   {{ tag: 'GET', label: '/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates' }}
<Row>
<Col>

### Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.

Example: `Authorization: Bearer 123`

<ParameterTree parameters={[{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page ID"},"required":true,"description":"Status Page ID","name":"status_page_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page Incident ID"},"required":true,"description":"Status Page Incident ID","name":"status_page_incident_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page Incident ID","style":"simple"}]} title="Path parameters" />

<ParameterTree parameters={[{"schema":{"type":"string","default":"1","example":1,"description":"Page number of paginated results."},"required":false,"description":"Page number of paginated results.","name":"page","in":"query","exampleValues":{"object":1,"json":"'1'"},"originalType":"string","safeType":"string","shortDesc":"Page number of paginated results.","style":"form"},{"schema":{"type":"string","default":"20","example":20,"description":"Number of items per page."},"required":false,"description":"Number of items per page.","name":"per_page","in":"query","exampleValues":{"object":20,"json":"'20'"},"originalType":"string","safeType":"string","shortDesc":"Number of items per page.","style":"form"},{"schema":{"type":"string","example":"example","description":"Search term to filter results."},"required":false,"description":"Search term to filter results.","name":"search","in":"query","exampleValues":{"object":"example","json":"'example'"},"originalType":"string","safeType":"string","shortDesc":"Search term to filter results.","style":"form"}]} title="Query parameters" />

<h3 id="get__v1_status_pages_{status_page_id}_incidents_{status_page_incident_id}_updates-responses">Responses</h3>

|Status|Meaning|Description|
|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Returns a list of updates for the incident|
|401|[Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)|Unauthenticated|
|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|Unauthorized|
|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|Internal Server Error|

<ResponseSchemas schemas={[{"status":"200","properties":[{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"incident_id":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"status":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"description":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"date_happened":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"created_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"updated_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"}},"required":["id","incident_id","status","description","date_happened","created_at","updated_at"]}},"in":"body","name":"result","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» result"},{"schema":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"in":"body","name":"id","depth":2,"description":"Incident Update ID","type":"string","safeType":"string","required":true,"displayName":"»» id"},{"schema":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"in":"body","name":"incident_id","depth":2,"description":"Parent incident ID","type":"string","safeType":"string","required":true,"displayName":"»» incident_id"},{"schema":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"in":"body","name":"status","depth":2,"description":"Status of this update","type":"string","safeType":"string","required":true,"displayName":"»» status"},{"schema":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"in":"body","name":"description","depth":2,"description":"Update message","type":"string","safeType":"string","required":true,"displayName":"»» description"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"in":"body","name":"date_happened","depth":2,"description":"When this update occurred","type":"string","safeType":"string","required":true,"displayName":"»» date_happened"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"in":"body","name":"created_at","depth":2,"description":"When this update was created","type":"string","safeType":"string","required":true,"displayName":"»» created_at"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"in":"body","name":"updated_at","depth":2,"description":"When this update was last modified","type":"string","safeType":"string","required":true,"displayName":"»» updated_at"},{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"},"in":"body","name":"components","depth":2,"description":"Component status changes in this update","type":"array","safeType":"object[]","required":false,"displayName":"»» components"},{"schema":{"type":"string","example":"comp123","description":"Component ID"},"in":"body","name":"id","depth":3,"description":"Component ID","type":"string","safeType":"string","required":true,"displayName":"»»» id"},{"schema":{"type":"string","example":"API Server","description":"Component name"},"in":"body","name":"name","depth":3,"description":"Component name","type":"string","safeType":"string","required":true,"displayName":"»»» name"},{"schema":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"in":"body","name":"old_status","depth":3,"description":"Previous component status","type":["string","null"],"safeType":["string","null"],"required":true,"displayName":"»»» old_status"},{"schema":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"},"in":"body","name":"new_status","depth":3,"description":"New component status","type":"string","safeType":"string","required":true,"displayName":"»»» new_status"},{"schema":{"type":"object","properties":{"page":{"type":"number","default":1,"example":1,"description":"Page number of paginated results."},"per_page":{"type":"number","default":20,"example":20,"description":"Number of items per page."},"count":{"type":"number","example":1,"description":"Number of items on the current page."},"total_count":{"type":"number","example":1,"description":"Total number of items."}},"required":["count","total_count"]},"in":"body","name":"result_info","depth":1,"type":"object","safeType":"object","required":true,"displayName":"» result_info"},{"schema":{"type":"number","default":1,"example":1,"description":"Page number of paginated results."},"in":"body","name":"page","depth":2,"description":"Page number of paginated results.","type":"number","safeType":"number","required":false,"displayName":"»» page"},{"schema":{"type":"number","default":20,"example":20,"description":"Number of items per page."},"in":"body","name":"per_page","depth":2,"description":"Number of items per page.","type":"number","safeType":"number","required":false,"displayName":"»» per_page"},{"schema":{"type":"number","example":1,"description":"Number of items on the current page."},"in":"body","name":"count","depth":2,"description":"Number of items on the current page.","type":"number","safeType":"number","required":true,"displayName":"»» count"},{"schema":{"type":"number","example":1,"description":"Total number of items."},"in":"body","name":"total_count","depth":2,"description":"Total number of items.","type":"number","safeType":"number","required":true,"displayName":"»» total_count"},{"schema":{"type":"boolean","default":true,"example":true,"description":"Whether the API call was successful"},"in":"body","name":"success","depth":1,"description":"Whether the API call was successful","type":"boolean","safeType":"boolean","required":true,"displayName":"» success"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"errors","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» errors"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"messages","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» messages"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"}]}]} />

</Col>

<Col sticky>

<CodeGroup title="Request" tag="GET" label="/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates">
```bash {{ title: 'cURL' }}
curl --request GET \
  --url https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer {access-token}'
```

```javascript
fetch("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates", {
  "method": "GET",
  "headers": {
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});
```

```java
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates")
  .get()
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer {access-token}")
  .build();

Response response = client.newCall(request).execute();
```

```php
<?php

$request = new HttpRequest();
$request->setUrl('https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'Accept' => 'application/json',
  'Authorization' => 'Bearer {access-token}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
```

```ruby
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer {access-token}'

response = http.request(request)
puts response.read_body
```

```python
import requests

url = "https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates"

headers = {
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
}

response = requests.request("GET", url, headers=headers)

print(response.text)
```

</CodeGroup>

```json {{ title: '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": []
}
```

</Col>
</Row>

---

## Create a new update for an incident   {{ tag: 'POST', label: '/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates' }}
<Row>
<Col>

### Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.

Example: `Authorization: Bearer 123`

<ParameterTree parameters={[{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page ID"},"required":true,"description":"Status Page ID","name":"status_page_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page Incident ID"},"required":true,"description":"Status Page Incident ID","name":"status_page_incident_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page Incident ID","style":"simple"}]} title="Path parameters" />

<ParameterTree parameters={[{"in":"body","schema":{"type":"object","properties":{"status":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status for this update"},"description":{"type":"string","minLength":1,"example":"We are investigating reports of connectivity issues","description":"Update message"},"notify_subscribers":{"type":"boolean","default":true,"example":true,"description":"Whether to notify status page subscribers"},"components_affected":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4","description":"Status Page Component ID"},"status":{"type":"string","enum":["OPERATIONAL","MAJOR_OUTAGE","PARTIAL_OUTAGE","DEGRADED_PERFORMANCE","MAINTENANCE","NO_IMPACT"],"example":"MAJOR_OUTAGE","description":"New status for the component"}},"required":["id","status"]},"description":"Components affected by this update with their new status"},"date_happened":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred (defaults to now)"}},"required":["status","description"]},"name":"body","required":true,"exampleValues":{"object":{"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"},"json":"{\n  \"status\": \"INVESTIGATING\",\n  \"description\": \"We are investigating reports of connectivity issues\",\n  \"notify_subscribers\": true,\n  \"components_affected\": [\n    {\n      \"id\": \"a1b2c3d4\",\n      \"status\": \"MAJOR_OUTAGE\"\n    }\n  ],\n  \"date_happened\": \"2021-01-01T00:00:00.000Z\"\n}"},"originalType":"object","safeType":"object"},{"in":"body","schema":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status for this update"},"name":"» status","required":true,"description":"Status for this update","safeType":"string","depth":1,"exampleValues":{"object":"INVESTIGATING","json":"'INVESTIGATING'"},"shortDesc":"Status for this update"},{"in":"body","schema":{"type":"string","minLength":1,"example":"We are investigating reports of connectivity issues","description":"Update message"},"name":"» description","required":true,"description":"Update message","safeType":"string","depth":1,"exampleValues":{"object":"We are investigating reports of connectivity issues","json":"'We are investigating reports of connectivity issues'"},"shortDesc":"Update message"},{"in":"body","schema":{"type":"boolean","default":true,"example":true,"description":"Whether to notify status page subscribers"},"name":"» notify_subscribers","required":false,"description":"Whether to notify status page subscribers","safeType":"boolean","depth":1,"exampleValues":{"object":true,"json":"'true'"},"shortDesc":"Whether to notify status page subscribers"},{"in":"body","schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"a1b2c3d4","description":"Status Page Component ID"},"status":{"type":"string","enum":["OPERATIONAL","MAJOR_OUTAGE","PARTIAL_OUTAGE","DEGRADED_PERFORMANCE","MAINTENANCE","NO_IMPACT"],"example":"MAJOR_OUTAGE","description":"New status for the component"}},"required":["id","status"]},"description":"Components affected by this update with their new status"},"name":"» components_affected","required":false,"description":"Components affected by this update with their new status","safeType":"object[]","depth":1,"exampleValues":{"object":[{"id":"a1b2c3d4","status":"MAJOR_OUTAGE"}],"json":"[\n  {\n    \"id\": \"a1b2c3d4\",\n    \"status\": \"MAJOR_OUTAGE\"\n  }\n]"},"shortDesc":"Components affected by this update with their new status"},{"in":"body","schema":{"type":"string","example":"a1b2c3d4","description":"Status Page Component ID"},"name":"»» id","required":true,"description":"Status Page Component ID","safeType":"string","depth":2,"exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"shortDesc":"Status Page Component ID"},{"in":"body","schema":{"type":"string","enum":["OPERATIONAL","MAJOR_OUTAGE","PARTIAL_OUTAGE","DEGRADED_PERFORMANCE","MAINTENANCE","NO_IMPACT"],"example":"MAJOR_OUTAGE","description":"New status for the component"},"name":"»» status","required":true,"description":"New status for the component","safeType":"string","depth":2,"exampleValues":{"object":"MAJOR_OUTAGE","json":"'MAJOR_OUTAGE'"},"shortDesc":"New status for the component"},{"in":"body","schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred (defaults to now)"},"name":"» date_happened","required":false,"description":"When this update occurred (defaults to now)","safeType":"string","depth":1,"exampleValues":{"object":"2021-01-01T00:00:00.000Z","json":"'2021-01-01T00:00:00.000Z'"},"shortDesc":"When this update occurred (defaults to now)"}]} title="Body parameters" />

<h3 id="post__v1_status_pages_{status_page_id}_incidents_{status_page_incident_id}_updates-responses">Responses</h3>

|Status|Meaning|Description|
|---|---|---|
|201|[Created](https://tools.ietf.org/html/rfc7231#section-6.3.2)|Returns the newly created incident update|
|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|Bad Request|
|401|[Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)|Unauthenticated|
|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|Unauthorized|
|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|Internal Server Error|

<ResponseSchemas schemas={[{"status":"201","properties":[{"schema":{"type":"object","properties":{"id":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"incident_id":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"status":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"description":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"date_happened":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"created_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"updated_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"}},"required":["id","incident_id","status","description","date_happened","created_at","updated_at"]},"in":"body","name":"result","depth":1,"type":"object","safeType":"object","required":true,"displayName":"» result"},{"schema":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"in":"body","name":"id","depth":2,"description":"Incident Update ID","type":"string","safeType":"string","required":true,"displayName":"»» id"},{"schema":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"in":"body","name":"incident_id","depth":2,"description":"Parent incident ID","type":"string","safeType":"string","required":true,"displayName":"»» incident_id"},{"schema":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"in":"body","name":"status","depth":2,"description":"Status of this update","type":"string","safeType":"string","required":true,"displayName":"»» status"},{"schema":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"in":"body","name":"description","depth":2,"description":"Update message","type":"string","safeType":"string","required":true,"displayName":"»» description"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"in":"body","name":"date_happened","depth":2,"description":"When this update occurred","type":"string","safeType":"string","required":true,"displayName":"»» date_happened"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"in":"body","name":"created_at","depth":2,"description":"When this update was created","type":"string","safeType":"string","required":true,"displayName":"»» created_at"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"in":"body","name":"updated_at","depth":2,"description":"When this update was last modified","type":"string","safeType":"string","required":true,"displayName":"»» updated_at"},{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"},"in":"body","name":"components","depth":2,"description":"Component status changes in this update","type":"array","safeType":"object[]","required":false,"displayName":"»» components"},{"schema":{"type":"string","example":"comp123","description":"Component ID"},"in":"body","name":"id","depth":3,"description":"Component ID","type":"string","safeType":"string","required":true,"displayName":"»»» id"},{"schema":{"type":"string","example":"API Server","description":"Component name"},"in":"body","name":"name","depth":3,"description":"Component name","type":"string","safeType":"string","required":true,"displayName":"»»» name"},{"schema":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"in":"body","name":"old_status","depth":3,"description":"Previous component status","type":["string","null"],"safeType":["string","null"],"required":true,"displayName":"»»» old_status"},{"schema":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"},"in":"body","name":"new_status","depth":3,"description":"New component status","type":"string","safeType":"string","required":true,"displayName":"»»» new_status"},{"schema":{"type":"boolean","default":true,"example":true,"description":"Whether the API call was successful"},"in":"body","name":"success","depth":1,"description":"Whether the API call was successful","type":"boolean","safeType":"boolean","required":true,"displayName":"» success"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"errors","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» errors"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"messages","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» messages"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"}]}]} />

</Col>

<Col sticky>

<CodeGroup title="Request" tag="POST" label="/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates">
```bash {{ title: 'cURL' }}
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' \
  --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"}'
```

```javascript
fetch("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates", {
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
  },
  "body": "{\"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\"}"
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});
```

```java
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"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\"}");
Request request = new Request.Builder()
  .url("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates")
  .post(body)
  .addHeader("Content-Type", "application/json")
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer {access-token}")
  .build();

Response response = client.newCall(request).execute();
```

```php
<?php

$request = new HttpRequest();
$request->setUrl('https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'Content-Type' => 'application/json',
  'Accept' => 'application/json',
  'Authorization' => 'Bearer {access-token}'
]);

$request->setBody('{"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"}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
```

```ruby
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer {access-token}'
request.body = "{\"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 = http.request(request)
puts response.read_body
```

```python
import requests

url = "https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates"

payload = {
    "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"
}
headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)
```

</CodeGroup>

```json {{ title: '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": []
}
```

</Col>
</Row>

---

## Retrieve a single incident update   {{ tag: 'GET', label: '/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates/{incident_update_id}' }}
<Row>
<Col>

### Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.

Example: `Authorization: Bearer 123`

<ParameterTree parameters={[{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page ID"},"required":true,"description":"Status Page ID","name":"status_page_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page Incident ID"},"required":true,"description":"Status Page Incident ID","name":"status_page_incident_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page Incident ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"e5f6g7h8","description":"Incident Update ID"},"required":true,"description":"Incident Update ID","name":"incident_update_id","in":"path","exampleValues":{"object":"e5f6g7h8","json":"'e5f6g7h8'"},"originalType":"string","safeType":"string","shortDesc":"Incident Update ID","style":"simple"}]} title="Path parameters" />

<h3 id="get__v1_status_pages_{status_page_id}_incidents_{status_page_incident_id}_updates_{incident_update_id}-responses">Responses</h3>

|Status|Meaning|Description|
|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Returns the incident update|
|401|[Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)|Unauthenticated|
|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|Unauthorized|
|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|Not Found|
|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|Internal Server Error|

<ResponseSchemas schemas={[{"status":"200","properties":[{"schema":{"type":"object","properties":{"id":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"incident_id":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"status":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"description":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"date_happened":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"created_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"updated_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"}},"required":["id","incident_id","status","description","date_happened","created_at","updated_at"]},"in":"body","name":"result","depth":1,"type":"object","safeType":"object","required":true,"displayName":"» result"},{"schema":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"in":"body","name":"id","depth":2,"description":"Incident Update ID","type":"string","safeType":"string","required":true,"displayName":"»» id"},{"schema":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"in":"body","name":"incident_id","depth":2,"description":"Parent incident ID","type":"string","safeType":"string","required":true,"displayName":"»» incident_id"},{"schema":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"in":"body","name":"status","depth":2,"description":"Status of this update","type":"string","safeType":"string","required":true,"displayName":"»» status"},{"schema":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"in":"body","name":"description","depth":2,"description":"Update message","type":"string","safeType":"string","required":true,"displayName":"»» description"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"in":"body","name":"date_happened","depth":2,"description":"When this update occurred","type":"string","safeType":"string","required":true,"displayName":"»» date_happened"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"in":"body","name":"created_at","depth":2,"description":"When this update was created","type":"string","safeType":"string","required":true,"displayName":"»» created_at"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"in":"body","name":"updated_at","depth":2,"description":"When this update was last modified","type":"string","safeType":"string","required":true,"displayName":"»» updated_at"},{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"},"in":"body","name":"components","depth":2,"description":"Component status changes in this update","type":"array","safeType":"object[]","required":false,"displayName":"»» components"},{"schema":{"type":"string","example":"comp123","description":"Component ID"},"in":"body","name":"id","depth":3,"description":"Component ID","type":"string","safeType":"string","required":true,"displayName":"»»» id"},{"schema":{"type":"string","example":"API Server","description":"Component name"},"in":"body","name":"name","depth":3,"description":"Component name","type":"string","safeType":"string","required":true,"displayName":"»»» name"},{"schema":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"in":"body","name":"old_status","depth":3,"description":"Previous component status","type":["string","null"],"safeType":["string","null"],"required":true,"displayName":"»»» old_status"},{"schema":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"},"in":"body","name":"new_status","depth":3,"description":"New component status","type":"string","safeType":"string","required":true,"displayName":"»»» new_status"},{"schema":{"type":"boolean","default":true,"example":true,"description":"Whether the API call was successful"},"in":"body","name":"success","depth":1,"description":"Whether the API call was successful","type":"boolean","safeType":"boolean","required":true,"displayName":"» success"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"errors","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» errors"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"messages","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» messages"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"}]}]} />

</Col>

<Col sticky>

<CodeGroup title="Request" tag="GET" label="/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates/{incident_update_id}">
```bash {{ title: 'cURL' }}
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}'
```

```javascript
fetch("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8", {
  "method": "GET",
  "headers": {
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});
```

```java
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8")
  .get()
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer {access-token}")
  .build();

Response response = client.newCall(request).execute();
```

```php
<?php

$request = new HttpRequest();
$request->setUrl('https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'Accept' => 'application/json',
  'Authorization' => 'Bearer {access-token}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
```

```ruby
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Get.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer {access-token}'

response = http.request(request)
puts response.read_body
```

```python
import requests

url = "https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8"

headers = {
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
}

response = requests.request("GET", url, headers=headers)

print(response.text)
```

</CodeGroup>

```json {{ title: '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": []
}
```

</Col>
</Row>

---

## Update an existing incident update   {{ tag: 'PATCH', label: '/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates/{incident_update_id}' }}
<Row>
<Col>

### Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.

Example: `Authorization: Bearer 123`

<ParameterTree parameters={[{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page ID"},"required":true,"description":"Status Page ID","name":"status_page_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page Incident ID"},"required":true,"description":"Status Page Incident ID","name":"status_page_incident_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page Incident ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"e5f6g7h8","description":"Incident Update ID"},"required":true,"description":"Incident Update ID","name":"incident_update_id","in":"path","exampleValues":{"object":"e5f6g7h8","json":"'e5f6g7h8'"},"originalType":"string","safeType":"string","shortDesc":"Incident Update ID","style":"simple"}]} title="Path parameters" />

<ParameterTree parameters={[{"in":"body","schema":{"type":"object","properties":{"status":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"IDENTIFIED","description":"Updated status"},"description":{"type":"string","minLength":1,"example":"The issue has been identified","description":"Updated message"},"date_happened":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"Updated timestamp"}}},"name":"body","required":true,"exampleValues":{"object":{"status":"IDENTIFIED","description":"The issue has been identified","date_happened":"2021-01-01T00:00:00.000Z"},"json":"{\n  \"status\": \"IDENTIFIED\",\n  \"description\": \"The issue has been identified\",\n  \"date_happened\": \"2021-01-01T00:00:00.000Z\"\n}"},"originalType":"object","safeType":"object"},{"in":"body","schema":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"IDENTIFIED","description":"Updated status"},"name":"» status","required":false,"description":"Updated status","safeType":"string","depth":1,"exampleValues":{"object":"IDENTIFIED","json":"'IDENTIFIED'"},"shortDesc":"Updated status"},{"in":"body","schema":{"type":"string","minLength":1,"example":"The issue has been identified","description":"Updated message"},"name":"» description","required":false,"description":"Updated message","safeType":"string","depth":1,"exampleValues":{"object":"The issue has been identified","json":"'The issue has been identified'"},"shortDesc":"Updated message"},{"in":"body","schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"Updated timestamp"},"name":"» date_happened","required":false,"description":"Updated timestamp","safeType":"string","depth":1,"exampleValues":{"object":"2021-01-01T00:00:00.000Z","json":"'2021-01-01T00:00:00.000Z'"},"shortDesc":"Updated timestamp"}]} title="Body parameters" />

<h3 id="patch__v1_status_pages_{status_page_id}_incidents_{status_page_incident_id}_updates_{incident_update_id}-responses">Responses</h3>

|Status|Meaning|Description|
|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Returns the updated incident update|
|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|Bad Request|
|401|[Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)|Unauthenticated|
|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|Unauthorized|
|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|Not Found|
|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|Internal Server Error|

<ResponseSchemas schemas={[{"status":"200","properties":[{"schema":{"type":"object","properties":{"id":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"incident_id":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"status":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"description":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"date_happened":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"created_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"updated_at":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"}},"required":["id","incident_id","status","description","date_happened","created_at","updated_at"]},"in":"body","name":"result","depth":1,"type":"object","safeType":"object","required":true,"displayName":"» result"},{"schema":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"in":"body","name":"id","depth":2,"description":"Incident Update ID","type":"string","safeType":"string","required":true,"displayName":"»» id"},{"schema":{"type":"string","example":"a1b2c3d4","description":"Parent incident ID"},"in":"body","name":"incident_id","depth":2,"description":"Parent incident ID","type":"string","safeType":"string","required":true,"displayName":"»» incident_id"},{"schema":{"type":"string","enum":["INVESTIGATING","IDENTIFIED","MONITORING","RESOLVED","UPDATE","SCHEDULED","IN_PROGRESS","VERIFYING","COMPLETED"],"example":"INVESTIGATING","description":"Status of this update"},"in":"body","name":"status","depth":2,"description":"Status of this update","type":"string","safeType":"string","required":true,"displayName":"»» status"},{"schema":{"type":"string","example":"We are investigating reports of connectivity issues","description":"Update message"},"in":"body","name":"description","depth":2,"description":"Update message","type":"string","safeType":"string","required":true,"displayName":"»» description"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update occurred"},"in":"body","name":"date_happened","depth":2,"description":"When this update occurred","type":"string","safeType":"string","required":true,"displayName":"»» date_happened"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was created"},"in":"body","name":"created_at","depth":2,"description":"When this update was created","type":"string","safeType":"string","required":true,"displayName":"»» created_at"},{"schema":{"type":"string","example":"2021-01-01T00:00:00.000Z","description":"When this update was last modified"},"in":"body","name":"updated_at","depth":2,"description":"When this update was last modified","type":"string","safeType":"string","required":true,"displayName":"»» updated_at"},{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","example":"comp123","description":"Component ID"},"name":{"type":"string","example":"API Server","description":"Component name"},"old_status":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"new_status":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"}},"required":["id","name","old_status","new_status"]},"description":"Component status changes in this update"},"in":"body","name":"components","depth":2,"description":"Component status changes in this update","type":"array","safeType":"object[]","required":false,"displayName":"»» components"},{"schema":{"type":"string","example":"comp123","description":"Component ID"},"in":"body","name":"id","depth":3,"description":"Component ID","type":"string","safeType":"string","required":true,"displayName":"»»» id"},{"schema":{"type":"string","example":"API Server","description":"Component name"},"in":"body","name":"name","depth":3,"description":"Component name","type":"string","safeType":"string","required":true,"displayName":"»»» name"},{"schema":{"type":["string","null"],"example":"OPERATIONAL","description":"Previous component status"},"in":"body","name":"old_status","depth":3,"description":"Previous component status","type":["string","null"],"safeType":["string","null"],"required":true,"displayName":"»»» old_status"},{"schema":{"type":"string","example":"MAJOR_OUTAGE","description":"New component status"},"in":"body","name":"new_status","depth":3,"description":"New component status","type":"string","safeType":"string","required":true,"displayName":"»»» new_status"},{"schema":{"type":"boolean","default":true,"example":true,"description":"Whether the API call was successful"},"in":"body","name":"success","depth":1,"description":"Whether the API call was successful","type":"boolean","safeType":"boolean","required":true,"displayName":"» success"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"errors","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» errors"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"messages","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» messages"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"}]}]} />

</Col>

<Col sticky>

<CodeGroup title="Request" tag="PATCH" label="/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates/{incident_update_id}">
```bash {{ title: 'cURL' }}
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' \
  --data '{"status":"IDENTIFIED","description":"The issue has been identified","date_happened":"2021-01-01T00:00:00.000Z"}'
```

```javascript
fetch("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8", {
  "method": "PATCH",
  "headers": {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
  },
  "body": "{\"status\":\"IDENTIFIED\",\"description\":\"The issue has been identified\",\"date_happened\":\"2021-01-01T00:00:00.000Z\"}"
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});
```

```java
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"status\":\"IDENTIFIED\",\"description\":\"The issue has been identified\",\"date_happened\":\"2021-01-01T00:00:00.000Z\"}");
Request request = new Request.Builder()
  .url("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8")
  .patch(body)
  .addHeader("Content-Type", "application/json")
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer {access-token}")
  .build();

Response response = client.newCall(request).execute();
```

```php
<?php

HttpRequest::methodRegister('PATCH');
$request = new HttpRequest();
$request->setUrl('https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'Content-Type' => 'application/json',
  'Accept' => 'application/json',
  'Authorization' => 'Bearer {access-token}'
]);

$request->setBody('{"status":"IDENTIFIED","description":"The issue has been identified","date_happened":"2021-01-01T00:00:00.000Z"}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
```

```ruby
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer {access-token}'
request.body = "{\"status\":\"IDENTIFIED\",\"description\":\"The issue has been identified\",\"date_happened\":\"2021-01-01T00:00:00.000Z\"}"

response = http.request(request)
puts response.read_body
```

```python
import requests

url = "https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8"

payload = {
    "status": "IDENTIFIED",
    "description": "The issue has been identified",
    "date_happened": "2021-01-01T00:00:00.000Z"
}
headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
}

response = requests.request("PATCH", url, json=payload, headers=headers)

print(response.text)
```

</CodeGroup>

```json {{ title: '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": []
}
```

</Col>
</Row>

---

## Delete an incident update   {{ tag: 'DELETE', label: '/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates/{incident_update_id}' }}
<Row>
<Col>

### Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.

Example: `Authorization: Bearer 123`

<ParameterTree parameters={[{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page ID"},"required":true,"description":"Status Page ID","name":"status_page_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"a1b2c3d4","description":"Status Page Incident ID"},"required":true,"description":"Status Page Incident ID","name":"status_page_incident_id","in":"path","exampleValues":{"object":"a1b2c3d4","json":"'a1b2c3d4'"},"originalType":"string","safeType":"string","shortDesc":"Status Page Incident ID","style":"simple"},{"schema":{"type":"string","minLength":8,"example":"e5f6g7h8","description":"Incident Update ID"},"required":true,"description":"Incident Update ID","name":"incident_update_id","in":"path","exampleValues":{"object":"e5f6g7h8","json":"'e5f6g7h8'"},"originalType":"string","safeType":"string","shortDesc":"Incident Update ID","style":"simple"}]} title="Path parameters" />

<h3 id="delete__v1_status_pages_{status_page_id}_incidents_{status_page_incident_id}_updates_{incident_update_id}-responses">Responses</h3>

|Status|Meaning|Description|
|---|---|---|
|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|Returns the deleted incident update's ID|
|401|[Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)|Unauthenticated|
|403|[Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)|Unauthorized|
|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|Not Found|
|500|[Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)|Internal Server Error|

<ResponseSchemas schemas={[{"status":"200","properties":[{"schema":{"type":"object","properties":{"id":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"}},"required":["id"]},"in":"body","name":"result","depth":1,"type":"object","safeType":"object","required":true,"displayName":"» result"},{"schema":{"type":"string","example":"e5f6g7h8","description":"Incident Update ID"},"in":"body","name":"id","depth":2,"description":"Incident Update ID","type":"string","safeType":"string","required":true,"displayName":"»» id"},{"schema":{"type":"boolean","default":true,"example":true,"description":"Whether the API call was successful"},"in":"body","name":"success","depth":1,"description":"Whether the API call was successful","type":"boolean","safeType":"boolean","required":true,"displayName":"» success"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"errors","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» errors"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"},{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"number"},"message":{"type":"string"},"type":{"type":"string"}},"required":["code","message"]},"example":[]},"in":"body","name":"messages","depth":1,"type":"array","safeType":"object[]","required":true,"displayName":"» messages"},{"schema":{"type":"number"},"in":"body","name":"code","depth":2,"type":"number","safeType":"number","required":true,"displayName":"»» code"},{"schema":{"type":"string"},"in":"body","name":"message","depth":2,"type":"string","safeType":"string","required":true,"displayName":"»» message"},{"schema":{"type":"string"},"in":"body","name":"type","depth":2,"type":"string","safeType":"string","required":false,"displayName":"»» type"}]}]} />

</Col>

<Col sticky>

<CodeGroup title="Request" tag="DELETE" label="/v1/status_pages/{status_page_id}/incidents/{status_page_incident_id}/updates/{incident_update_id}">
```bash {{ title: 'cURL' }}
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}'
```

```javascript
fetch("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8", {
  "method": "DELETE",
  "headers": {
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
  }
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.error(err);
});
```

```java
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8")
  .delete(null)
  .addHeader("Accept", "application/json")
  .addHeader("Authorization", "Bearer {access-token}")
  .build();

Response response = client.newCall(request).execute();
```

```php
<?php

$request = new HttpRequest();
$request->setUrl('https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'Accept' => 'application/json',
  'Authorization' => 'Bearer {access-token}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
```

```ruby
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Delete.new(url)
request["Accept"] = 'application/json'
request["Authorization"] = 'Bearer {access-token}'

response = http.request(request)
puts response.read_body
```

```python
import requests

url = "https://api.onlineornot.com/v1/status_pages/a1b2c3d4/incidents/a1b2c3d4/updates/e5f6g7h8"

headers = {
    "Accept": "application/json",
    "Authorization": "Bearer {access-token}"
}

response = requests.request("DELETE", url, headers=headers)

print(response.text)
```

</CodeGroup>

```json {{ title: 'Response' }}
{
  "result": {
    "id": "e5f6g7h8"
  },
  "success": true,
  "errors": [],
  "messages": []
}
```

</Col>
</Row>

---

