通知を既読にする
PUT
/notifications/:id/read指定した通知を既読にします。冪等で、既に既読の通知に対して呼んでも成功します。他ユーザー宛の通知や削除済みの通知を指定した場合は 404 を返します。
| 認証 | 要ログイン |
|---|
パスパラメータ
idstring必須通知 ID。
レスポンス
| フィールド | 型 | 説明 |
|---|---|---|
notification | Notification | 既読化した通知。 |
リクエスト
curl https://api.4s.link/notifications/ID/read \-X PUT \-H "Authorization: Bearer 4s_at_..."
レスポンス例
{"notification": {"id": "5f2a1c40-...","userId": "9c3b7e21-...","type": "EVENT_ANNOUNCEMENT","messageParams": {"eventName": "4S Conference 2026","announcementTitle": "受付開始時刻のお知らせ"},"isRead": true,"relatedId": "0b6d4f88-...","metadata": {"eventId": "0b6d4f88-...","eventSlug": "4s-conference-2026","announcementId": "7ae2c915-..."},"createdAt": "2026-08-19T02:30:00.000Z","updatedAt": "2026-08-19T03:01:12.000Z"}}