跳转到内容
EN

Mark all your letters read

Code Mode: praxis.organization.notifications.letters.readAll

HTTP: POST /organization/v1/notifications/letters:readAll

Mark every delivered letter in your own mailbox in this organization as read, with their bell notices; give kind to read only letters of that kind. Nothing in another mailbox is touched. Letters still scheduled are not delivered yet and stay as they are. Returns how many delivered letters you still have unread. No usage charge.

签名

praxis.organization.notifications.letters.readAll(args?:{body?:{/** Only letters of this kind; omit for all kinds. e.g. "mention" */ kind?:"notice"|"mention"|"decision"|"event"}}):Promise<{/** How many delivered letters you have not read, across all pages. */ unread:number}>;

请求体

必填内容类型说明
否application/json

响应

状态码内容类型说明
200application/jsonThe letters are read; your unread count after it.
400The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
401Missing or invalid credential (RFC 9457 problem).
502The 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.