# Update status update

Update an existing status page report update. Send only the parameters you wish to change (e.g. `message`)

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/status-pages/{status_page_id}/status-reports/{status_report_id}/status-updates/{status_update_id}"
method = "PATCH"

[[path_param]]
name = "status_page_id"
description = "The ID of your status page"
required = true
type = "string"

[[path_param]]
name = "status_report_id"
description = "The ID of your status page report"
required = true
type = "string"

[[path_param]]
name = "status_update_id"
description = "The ID of your status update"
required = true
type = "string"

[[body_param]]
name = "message"
description = "A message associated with the status update"
required = false
type = "string"

[[body_param]]
name = "notify_subscribers"
description = "Whether or not to send a notification email to subscribers of the status page. Default: false"
required = false
type = "boolean"

[[body_param]]
name = "affected_resources"
description = "An array of objects, where each object contains `status_page_resource_id` and `status` attributes. `status_page_resource_id` - The ID of the status page resource which you want to affect. `status` - Has to be `maintenance` if `report_type` is set to `maintenance`. Otherwise has to be one of `resolved`, `degraded` or `downtime`."
required = false
type = "array of objects"

[[body_param]]
name = "published_at"
description = "The time that will show as the time that the status update was published at (formatted in ISO-8601). Default: current time"
required = false
type = "string"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"

[[header]]
name = "Content_Type"
description = "application/json"
required = false
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = '''Returns the updated status page report update'''
body = '''{
    "data": {
        "id": "123456",
        "type": "status_update",
        "attributes": {
            "message": "Updated status update message",
            "published_at": "2021-12-16T16:04:09.880Z",
            "published_at_timezone": "UTC",
            "notify_subscribers": false,
            "status_report_id": 12345,
            "affected_resources": [
                {
                    "status_page_resource_id": "12345",
                    "status": "degraded"
                }
            ]
        }
    }
}'''
[/responses]

#### Example cURL 

```shell
[label Example]
curl --request PATCH \
  --url https://uptime.betterstack.com/api/v2/status-pages/123456/status-reports/12345/status-updates/123456 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"message": "Updated status update message"}'
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all status page report updates API parameters](https://betterstack.com/docs/uptime/api/status-page-report-updates-api-response-params/)
[/info]