latestOpenAPI 3.0.02026-08-20154102761.8 KB

490934cc6f91

Notifications

Marks one of your notifications as read

read_at defaults to the current time when omitted.

put/notifications/{notification}/mark-read

Path parameters

notificationinteger required

Notification id

Request body

read_atstring date-time

read_at

read_on'app' | 'planner' | 'api' nullable

Where the notification was read. Defaults to "api" for the Planner API.

Response

Notification

Example response

{
  "data": {
    "id": 1,
    "employee_id": 1,
    "causer_id": 1,
    "type": "App\\Notifications\\ToEmployee\\Assignment\\AssignedNotification",
    "read_on": "planner",
    "first_line": "1"
  }
}