AnsweredAssumed Answered

Loading a Course's Enrollment information with REST omits TeacherEnrollment?

Question asked by Akshya Pandey on Apr 20, 2018
Latest reply on Apr 20, 2018 by James Jones

I am trying to load a Course's enrollment and I am facing an issue. According to the Canvas API docs for listing enrollments, if I make a GET request at '/api/v1/courses/4/enrollments' without any type parameters, all enrollment types should be returned. However, I dont see 'TeacherEnrollment' in the response list, just StudentEnrollments (My course has 1 Teacher and 10 Students).

I have tried adding a parameter list in a variety of configurations, none of which return me a full list of enrollment information. Some of the ways I tried it are:




These end up returning just the second value inserted for role/type



This returns an empty list



returns the following error: 

{"errors":[{"message":"An error occurred.","error_code":"internal_server_error"}],"error_report_id":171}


Is there anything I am misunderstanding in this workflow? Any help is appreciated.