Mark all your unread bell messages read
Code Mode: praxis.organization.notifications.messages.readAll
HTTP: POST /organization/v1/notifications/messages:readAll
Mark every unread, unarchived bell message of the calling person in this organization as read, and tell the notifications still waiting on them. Nothing of anyone else’s is touched. Returns how many messages changed; 0 when there was nothing unread. No usage charge.
签名
praxis.organization.notifications.messages.readAll(args?:Record<string,never>):Promise<{/** The number of messages that were unread and are now read. */ updated:number}>;响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | How many messages were marked read. |
| 401 | Missing or invalid credential (RFC 9457 problem). | |
| 403 | `PERMISSION_DENIED`: an agent credential has no person inbox; read its own letters instead (RFC 9457 problem). | |
| 502 | The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it. |