Learner - Notifications API

This endpoint enables getting, changing and deleting learner notifications

Interfaces

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

Delete notification

DELETE /api/learner/notifications/:id

Response Codes

  • 204 No Content