Read
/api/v2/notification/read
Post
notifications
jwt
Purpose
To allow a user to mark an existing notification as being read.
Body Content [input]
{
uid: string,
notificationsID: string[],
is_read: bool
}
Returns if valid [output]
{
message: string,
error: 0
}
What the API does
- Fetches all
notifications
corresponding to the one among the values of thenotificationsID
field passed [404]. - Updates and save each of the
notifications
to have a value equal to that of the passedis_read
field for theirread
field.