Skip to main content
PATCH
/
notifications
/
{notificationId}
/
read
Mark Notification as Read
curl --request PATCH \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/notifications/{notificationId}/read \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "message": "Notification marked as read"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/notifications/example-id/read', {
  method: 'PATCH',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({})
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

notificationId
string
required

ID of the notification to mark as read

Example:

"1"

Response

Notification marked as read

status
string
Example:

"success"

message
string
Example:

"Operation completed successfully"