AnsweredAssumed Answered

Deleting Teacher Enrollment from a Course

Question asked by James Burville on Jan 7, 2016
Latest reply on Jan 8, 2016 by Tyler Clair

I'm trying to delete a teachers enrollment from many courses.  Nothing seems to be working.   Originally I was going to make two calls, one that selects all courses she is enrolled in and then I was going to filter it out to select all courses before a given data then I was going to use a second call in a loop to delete her from all those courses. 

 

The first call I'm going to use is: https://puc.instructure.com/api/v1/users/340026/enrollments?access_token="some access token"

 

Then I tried testing to delete it: https://puc.instructure.com/api/v1/courses/1352882/enrollments?id=340026&task=delete&access_token="some access token" or

https://puc.instructure.com/api/v1/courses/1352882/enrollments/340026?task=delete&access_token="some access token"

 

when I try the above calls I always get a 404 not found error.

 

I also tried using a csv file which said it worked fine but the teacher is still in the course.

 

course_id,user_id,role,section_id,status

"MUED-371-01-14FA",0000254,teacher,,deleted

 

 

Help

Outcomes