Mark all user's notifications as read

POST /api/notifications/mark_all_as_read

Mark all of a user's notifications as read at once. Updated records are not returned.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • updated_count number

      Number of updated notifications

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

POST /api/notifications/mark_all_as_read
curl \
 --request POST 'http://localhost:4000/api/notifications/mark_all_as_read' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "updated_count": 42.0
}
Response examples (401)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}