This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
curl --request PATCH \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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://server26-dot-royalti-project.uc.r.appspot.com/notifications/mark-all-read \
  --header 'Authorization: Bearer <token>'{
  "status": "success",
  "message": "All notifications marked as read"
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"