Notifications
- Get current user notifications
- Update current user notification’s
- Set several notifications as read
Notifications are individual to each users.
Get current user notifications
List notifications associated to the current user. Each notifications type are different. See the specific documentation about notifications type.
GET /v1/user/me/notifications
Response
200 OK
[
{
"id": "5693c026f02a930001000006",
"type": "changeStep",
"created_at": "2012-04-12T14:14:23+02:00",
"updated_at": "2012-04-12T14:14:23+02:00",
"data": {
"workshop": {
"id": "567a9e3184617100010001ac",
"title": "SyncStack",
"public_url": "http://stormz.me/workshops/syncstack/567a9e3184617100010001ac"
},
"step": {
"id": "568e57f3f1fe6b000100004e",
"name": "Step 1",
"instructions": ""
},
"from": {
"id": "55e459fa333563000100002d",
"name": "Cyril duez",
"avatar_url": ""
}
}
}
]
Update current user notification’s
Mark individual notifications as read.
PUT /v1/user/me/notifications/:id
Parameters
Name | Type | Description |
---|---|---|
read | boolean | wheter the notification is read or not |
Response
204 No Content
Set several notifications as read
PUT /v1/user/me/notifications/read
Parameters
Name | Type | Description |
---|---|---|
last_notification_id | string | until when notifications should be marked as read. If not provided, all notifications will be marked as read. |
Response
204 No Content