Delete one of your bell messages
Code Mode: praxis.organization.notifications.messages.delete
HTTP: DELETE /organization/v1/notifications/messages/{name}
Delete one of the calling person’s own bell messages for good. A message that is not theirs — another person’s, another organization’s — answers 404 exactly as one that does not exist, and nothing is deleted. Deleting a message does not delete the letter or notice it announced. No usage charge.
签名
praxis.organization.notifications.messages.delete(args:{path:{/** e.g. "subscribers/usr_8a21c4/messages/msg_3f9a1c7e" */ name:string}}):Promise<{/** Always true: the message was deleted. */ deleted:boolean}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| name | path | string | 是 | The message’s `name` from the messages list, subscribers/{user}/messages/{id}, URL-encoded. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The message is deleted. |
| 400 | `name` is not subscribers/{user}/messages/{id} — `INVALID_PARAMS` (RFC 9457 problem). | |
| 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). | |
| 404 | No such message of yours in this organization — `MESSAGE_NOT_FOUND` (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. |