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
notificationscorresponding to the one among the values of thenotificationsIDfield passed [404]. - Updates and save each of the
notificationsto have a value equal to that of the passedis_readfield for theirreadfield.