# 受信トレイの通知の状態変更

`PATCH /api/inbox/{inboxId}`

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

通知を未読またはアーカイブ済みに更新します。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `inboxId` | path | integer | 必須 | 通知の ID です。受信トレイの一覧の id に入っています。 |

## リクエストボディ

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `status` | body | unread \| archived | 必須 | 新しい状態です。`unread` で未読に戻し、`archived` で既読にして受信トレイから外します。 |

## リクエスト

```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"
  }'
```

## レスポンス

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

## レスポンスの例

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