Skip to main content

Notification

This model represents a notification.

PropertyTypeDescriptionInformation
idstringIdentifierUnique for single notification.
typestringNotification classRead-only.
dataarrayDetail of notificationRead-only.
read_atDateTime or nullNotification read date and time
created_atDateTimeNotification creation date and timeRead-only.
updated_atDateTimeNotification update date and timeRead-only.

Example:

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "App\\Containers\\Tasks\\Notifications\\TaskPastDeadlineNotification",
"data": {
"id": "14443236-342a-4de1-acb9-fcabc0b19334",
"type": "notification.task_past_deadline",
"task_id": 1,
"task_name": "Collect client requirements"
},
"read_at": "2022-04-28T13:25:12+0200",
"created_at": "2022-04-28T13:25:12+0200",
"_links": [
{
"href": "/api/v0/notifications/123e4567-e89b-12d3-a456-426614174000",
"rel": "self",
"type": "GET"
}
]
}