Mark all your notifications in this project as read
POST
/v1/notifications/read-all
const url = 'https://beta-api.plune.ai/v1/notifications/read-all';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/read-all \ --header 'Authorization: Bearer <token>'Yours only, in the project the request runs in (#1063). updated is how many were unread. 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 ”Header Parameters
Section titled “Header Parameters ” X-Plune-Project
string
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 ”Done
Media type application/json
object
updated
required
integer
Example generated
{ "updated": 1}No / invalid token or session
read-only member of the project
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}The project named in X-Plune-Project is not one of yours
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}Rate limit exceeded (twenty a minute)