cURL
curl --request POST \ --url https://api.example.com/notifications/toggle \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <x-api-key>' \ --data ' { "notificationIds": [ 123 ], "newRead": true } '
[ { "id": 123, "type": "quote", "userId": 123, "createdAt": "2023-11-07T05:31:56Z", "actorId": 123, "postId": 123, "read": true } ]
Updates the read status of specified notifications for the authenticated user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
API key required for authentication
List of notification IDs to update
New read status to apply to the notifications
The updated notifications
quote
reply
repost
mention
follow