curl --request PATCH \
--url https://api.royalti.io/notifications/mark-all-read \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "All notifications marked as read"
}Marks all notifications as read for the current user.
curl --request PATCH \
--url https://api.royalti.io/notifications/mark-all-read \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "All notifications marked as read"
}const response = await fetch('https://api.royalti.io/notifications/mark-all-read', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);