POST /notifications/read-all — mark every unread notification read.
POST
/api/notifications/read-all
const url = 'https://example.com/api/notifications/read-all';const options = {method: 'POST'};
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://example.com/api/notifications/read-allResponses
Section titled “Responses”Media typeapplication/json
POST /notifications/read-all response — the count of rows flipped to read.
object
updated
required
Count of notifications marked read.
integer format: int64
Examplegenerated
{ "updated": 1}