Mark all notifications as read
PUT
/notifications/read-allMark every unread notification of the authenticated user as read. Returns how many were updated.
| Auth | Login required |
|---|
Response
| Field | Type | Description |
|---|---|---|
success | boolean | Always true. |
readCount | number | Number of notifications marked as read. |
Request
curl https://api.4s.link/notifications/read-all \-X PUT \-H "Authorization: Bearer 4s_at_..."
Example response
{"success": true,"readCount": 3}