Marks one or more specific notifications as read for the current user.
Requires authentication.
Request
POST /notifications/read
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | Array 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
| Field | Type | Description |
|---|---|---|
ok | boolean | true if the operation was successful. |
Example Response
{
"ok": true
}
