Notifications
Mark all notifications read
Mark every library notification as read.
POST
/
api
/
v2
/
notifications
/
mark-all-read
/
Mark every unread notification read for the current user
curl --request POST \
--url https://api.example.com/api/v2/notifications/mark-all-read/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/notifications/mark-all-read/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/notifications/mark-all-read/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"updated": 123
}⌘I
Mark every unread notification read for the current user
curl --request POST \
--url https://api.example.com/api/v2/notifications/mark-all-read/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/notifications/mark-all-read/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/notifications/mark-all-read/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"updated": 123
}
