curl --request PATCH \
--url https://api.royalti.io/notifications/{notificationId}/read \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Notification marked as read"
}Marks a specific notification as read for the current user.
curl --request PATCH \
--url https://api.royalti.io/notifications/{notificationId}/read \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "Notification marked as read"
}const response = await fetch('https://api.royalti.io/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);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
ID of the notification to mark as read
"1"