Mark notifications as read

Marks one or more specific notifications as read for the current user.

Requires authentication.

Request

POST /notifications/read

Headers

HeaderValue
AuthorizationBearer <token>
Content-Typeapplication/json

Request Body

FieldTypeRequiredDescription
idsarrayYesArray of notification IDs to mark as read.

Example Request

POST /notifications/read
Authorization: Bearer <token>
Content-Type: application/json

{
  "ids": [1, 2, 3]
}

Response

Returns a JSON object confirming the operation.

Response Body

FieldTypeDescription
okbooleantrue if the operation was successful.

Example Response

{
  "ok": true
}