# Add an update to a post

`POST /api/v1/page-incidents/{incidentId}/updates`

Adds an update to an incident post and moves it to the update's state. `components` replaces the affected components; without it they stay. On a published page the update goes to its subscribers; a retry with the same `Idempotency-Key` answers the stored update instead of sending it again. Needs the editor role.

Sign-in: a dashboard session, an API token with `pages:write` or the `monitorly` CLI's sign-in with `pages:write`.

Section: Status pages. Operation id in openapi.json: `add_status_page_update`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `incidentId` | path | yes | string (uuid) | The incident post's id. |
| `Idempotency-Key` | header | no | string | Any 1–255 characters, for example a UUID per intended action. A retry with the same key and the same request answers the stored response and creates nothing again; the same key with another request answers `422 request.idempotency_key_reused`. Keys are kept for 24 hours. |

## Request body

Required: yes.

`application/json`: PageUpdateInput

| Field | Type | Required | Description |
|---|---|---|---|
| `body` | string | yes |  |
| `components` | array of AffectedComponentInput \| null | no | Replaces the affected components when given; missing keeps them. |
| `notify` | boolean \| null | no | `false`: add the update without telling the page's subscribers. Absent or `true`: a published page announces it. |
| `state` | PageIncidentState | yes |  |

Example:

```json
{
  "body": "Payments confirm as fast as usual again.",
  "notify": true,
  "state": "resolved"
}
```

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 201

The post with its new update.

`application/json`: PageIncidentView

| Field | Type | Required | Description |
|---|---|---|---|
| `autoIncidentId` | string (uuid) \| null | no | The automatic incident this post was published from ("publish" button), if any. |
| `components` | array of AffectedComponentView | yes | In page order. |
| `createdAt` | string | yes |  |
| `createdBy` | string (uuid) \| null | no |  |
| `id` | string (uuid) | yes |  |
| `pageId` | string (uuid) | yes |  |
| `publicUrl` | string \| null | no | `<status host>/<slug>/incidents/<id>`; null when the installation has no status page address. |
| `resolvedAt` | string \| null | no |  |
| `state` | PageIncidentState | yes |  |
| `title` | string | yes |  |
| `updates` | array of PageUpdateView | yes | Oldest first. |

Example:

```json
{
  "components": [
    {
      "componentId": "COMPONENT_ID",
      "impact": "partial",
      "name": "Payments API"
    }
  ],
  "createdAt": "2026-11-27T14:05:00Z",
  "id": "POST_ID",
  "pageId": "PAGE_ID",
  "publicUrl": "https://status.monitorly.cloud/acme/incidents/POST_ID",
  "resolvedAt": "2026-11-27T14:12:00Z",
  "state": "resolved",
  "title": "Payments are slow to confirm",
  "updates": [
    {
      "body": "Payments confirm as fast as usual again.",
      "createdAt": "2026-11-27T14:12:00Z",
      "id": "UPDATE_ID_2",
      "state": "resolved"
    },
    {
      "body": "Some card payments take longer than usual to confirm. We are looking into it.",
      "createdAt": "2026-11-27T14:05:00Z",
      "id": "UPDATE_ID_1",
      "state": "investigating"
    }
  ]
}
```

### 400

Bad Request.

- `request.malformed`: the body or a parameter is not of the expected shape
- `request.idempotency_key_invalid`: the key is empty or longer than 255 characters
- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.scope_missing`: the token lacks the scope this needs; `detail` names it
- `request.origin_mismatch`, `request.header_required`: a changing request with a session comes from another site or lacks `X-Monitorly-Request: 1`

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 413

Payload Too Large.

- `request.too_large`: the body is larger than 256 KiB

### 422

Unprocessable Entity.

- `field.required`, `field.too_long`, `field.invalid`: a field breaks a rule; `errors` points at it
- `status_page.component_unknown`: affected component is not from this page or is repeated

### 429

Too Many Requests.

- `token.rate_limited`: more than 10 requests a second with this token
- `session.rate_limited`: more than 5 changes a second from your sessions

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
