I am able to enroll a user into any given section using the API, however I am unable to remove that same user from any given section using the API. I've reviewed the various endpoints, and the closest I got to removing a user using the API from a section was to call the DELETE method on an endpoint like this:
$API_ROOT/lp/$version/enrollments/users/$D2LUserId/orgunits/$orgUnitID
This however removes the user from the course (and subsequently all sections) however if they're re-enrolled in the course, they return to their previous sections.
If there is an API endpoint I over looked, or if their is a method to move a user from one section to another, this would be very helpful.
I am able to un-enroll a user from a section using the Web page administration, which led me to think it maybe had to do with the groups and group categories deletion endpoint but this ended up not being the case