# Update inbox notification status

`PATCH /api/inbox/{inboxId}`

URL: https://repsona.com/api/patch-inbox-inboxid

Marks a notification unread or archived (legacy-compatible).

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `inboxId` | path | integer | required | ID of the notification, from `id` in the inbox list. |

## Request body

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `status` | body | unread \| archived | required | New status. `unread` marks the notification unread; `archived` marks it as read and moves it out of the inbox. |

## Request

```sh
curl -X PATCH "https://<space>.repsona.com/api/inbox/{inboxId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "archived"
  }'
```

## Responses

- 200: Updated
- 401: Authentication is required
- 404: Notification not found

## Example response

```json
{
  "ok": true
}
```
