Mark one notification as read
const url = 'https://beta-api.plune.ai/v1/notifications/example/read';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://beta-api.plune.ai/v1/notifications/example/read \ --header 'Authorization: Bearer <token>'Yours only, in the project the request runs in (#1063). Marking one that is already read changes nothing and answers 200 with its first readAt. Someone else’s notification, one of another project and an invented id are the same 404. Not an audit entry: it is the person’s own state. A reader is refused at the boundary with 403 read-only member.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Header Parameters
Section titled “Header Parameters ”Which of your projects to act in — an id from GET /v1/projects. Absent, your default project. A project you are not a member of answers 404, the same as one that does not exist. Ignored under a bearer token, which is bound to the project it was minted in.
Responses
Section titled “ Responses ”The notification, read
One thing told to one person in one project. The text is not stored finished: the dashboard words it from textKey and params in the person’s language. kind is from a closed list - for a bug (ADR 0057, #1067) bug.can_be_closed, bug.auto_closed, bug.reopened_by_regression and bug.fails_again (a case failed after the bug was closed by hand; it stays closed); a client shows an unknown kind by its textKey and does not fail.
object
What it is about: the link the list opens.
object
The dashboard dictionary entry that words it.
Null while unread.
Example
{ "kind": "bug.can_be_closed", "entity": { "kind": "bug" }}No / invalid token or session
read-only member of the project
object
Example generated
{ "error": "example"}No such notification of yours in this project
object
Example generated
{ "error": "example"}Rate limit exceeded (120 a minute)