So there's this route to enroll a user in a section, but there doesn't seem to be the opposite: a route to unenroll a student from a section.
In fact, there doesn't seem to be a direct route to unenrolling a user from a section from within the LMS itself. I just watched our administrator "unenroll" a student by switching their role in the section to "no role," which, incidentally, isn't a role available via /d2l/api/lp/1.4/roles/.
What am I missing here?
Thanks!
From what I can tell, it definitely seems like that is an oversight in the Valence API. I haven't tried it myself yet, but I wonder if the course offering unenrollment cascades down to the section enrollment also? Naturally that doesn't help solve the problem if you have to unenroll a user from a course offering just to switch their section enrollment within that course offering.
In terms of unenrolling a user from a section within the LMS, this can be accomplished by going into the Section Management within that course offering (Edit Course -> Sections). Then select 'Enrol Users', this will open a table listing the classlist where every section has a column that you can check on/off to enroll/unenroll the user in that specific section (check off more than 1 to enroll in multiple sections).