Link Search Menu Expand Document

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 the notificationsID field passed [404].
  • Updates and save each of the notifications to have a value equal to that of the passed is_read field for their read field.