API documentation shows only one way of deleting an enrollment from a course. Is there a way to do it for sections?
I did try to call section instead course api/v1/sections/SECTION_ID/enrollments/ENROLLMENT_ID without luck.
Thanks!
API documentation shows only one way of deleting an enrollment from a course. Is there a way to do it for sections?
I did try to call section instead course api/v1/sections/SECTION_ID/enrollments/ENROLLMENT_ID without luck.
Thanks!
I'm struggling to remember because it was a long time ago but I recall that we had this issue and our workaround was to use the course ID to remove them from the course and then enroll them back into the section they were supposed to be in. As long as there aren't any section-specific assignments, that works just fine.
You just use the course endpoint with the id for the section enrolment. It does not matter that the enrolment is in a section. That is, you can use: Enrollments - Canvas LMS REST API Documentation
You just use the course endpoint with the id for the section enrolment. It does not matter that the enrolment is in a section. That is, you can use: Enrollments - Canvas LMS REST API Documentation