Remove Course Enrollment
Cancels a learner's course enrollment and removes them from that course's batches. Get `enrollment_id` and the course ID from the learner's enrollment (purchase) details.
POST
/bundle/student/removeRemove Course Enrollment
curl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/bundle/student/remove' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"student_id":89863205,"bundle_id":12511,"enrollment_id":901015}'{
"code": 200,
"message": "Success"
}Access: Institute admins, admins and tutors, plus custom roles that can manage learners.
Request body: form-data with one field, JSONString, containing this JSON:
Body
JSONStringThe learner's user ID.
The course the learner is enrolled in (
package_id in the learner's purchase list).The enrollment to cancel (
enrollment_id in the learner's purchase list).Notes:
- The enrollment is marked cancelled and the learner is archived from all batches of that course and from its batch communities.
- Unpaid instalment invoices for the enrollment are deleted (only when an institute admin or a custom role makes the call). Paid invoices and recorded payments are kept.
- If
enrollment_idandstudent_iddon't match an enrollment, nothing changes and the call still returns "Success". - Rate limit: 100 requests per minute; going over locks you out for 30 minutes.