PUT /notifications/{id}/mark-as-read

Mark notification as read

Notifications

Description

Marks a specific notification as read for the authenticated user.

Authentication Required: User must be authenticated.

Parameters

id integer path required
Notification ID

Responses

200 Notification marked as read successfully
application/json
statusstring
Example: success
messagestring
Example: Notification marked as read
dataobject
Example:
{
  "status": "success",
  "message": "Notification marked as read",
  "data": {
    "id": 1,
    "event": "new_transaction",
    "context": {
      "amount": "150.00"
    },
    "message": "A new transaction of $150.00 was recorded",
    "has_been_read": true,
    "notified_at": "2024-01-15T10:30:00Z"
  }
}
401 Authentication required
application/json
Example:
{
  "status": "error",
  "message": "Not authenticated or insufficient permissions"
}
404 Notification not found
application/json
Example:
{
  "status": "error",
  "message": "Notification not found"
}