Skip to main content

Course Enrollments

Endpoint URL

POST /api/v2/batch/enrollments

Course Enrollments. Creates multiple course enrollments in a single request. Use this endpoint to mass assign users to courses by providing an array of course_id and user_id pairs in the request body. Each item can optionally set the course role (learner or instructor); when omitted, the default role of the user type is used. If the request is valid, the API processes each enrollment and returns the corresponding results. This endpoint is ideal for bulk operations and large-scale user-course assignments.​

Request​

Responses​

Successful response