This endpoint enables getting, changing and deleting learner notifications
Learner - Notifications API
Fetch notifications
GET
/api/learner/notifications
Response Codes
200 OK
Example Response
{
"notifications": [
{
"id": 254,
"user_id": 6094,
"subject": "You have a goal that was overdue on Friday August 4.",
"body": ["span"],
"sent_at": "2017-08-05T00:25:00.314Z",
"read": false
}
]
}
Update notification
PATCH
/api/learner/notifications/:id
PUT
/api/learner/notifications/:id
Response Codes
200 OK
Fetch notifications
GET
/api/learner/notifications
Response Codes
200 OK
Example Response
{ "notifications": [ { "id": 254, "user_id": 6094, "subject": "You have a goal that was overdue on Friday August 4.", "body": ["span"], "sent_at": "2017-08-05T00:25:00.314Z", "read": false } ] }
Update notification
PATCH
/api/learner/notifications/:id
PUT
/api/learner/notifications/:id
Response Codes
200 OK