Learner - Enrollment API

Enroll user for the course.

Enroll user for an open enrollment enabled course

Interfaces

Create enrollment

POST /api/learner/courses/:course_id/enrollment

This endpoint enrolls the user to a given course

Response codes

  • 201 Created
  • 400 Bad Request

Fetch list of enrollments

GET /api/learner/courses/:course_id/enrollment

This endpoint lists enrollments for a given course

Response codes

  • 200 OK
  • 404 Not Found

Create an enrollment

POST /api/learner/open_courses/:open_course_id/enrollment

This endpoint enrolls the user to a given course with open enrollment or manual re-enroll enabled.

Response codes

  • 201 Created
  • 400 Bad Request

Retrieve an enrollment

GET /api/learner/open_courses/:open_course_id/enrollment

This endpoint returns the enrollments for the user for the given course UUID.