ScottMowry
Community Member

API Courses & Users

I'm seeing a situation where a call to get a users' courses (GET /api/v1/users/:user_id/courses) disagrees with the call to get all users in a course (GET /api/v1/courses/:course_id/users). The first call says user 12345 is in course 67890, for example, but the second call does not list that user. Any idea why this would be?

Labels (2)
0 Kudos
4 Replies
matthew_buckett
Community Contributor

Could it be that one of the calls isn't including enrollments that haven't been accepted?

0 Kudos

Hmmm...could be. I'll have to do some digging. Thanks for the suggestion.
0 Kudos
agschmid
Community Contributor

Also, do you need to add "?per_page=100" to the end of the call since it only returns the first 10 records by default?

0 Kudos

I was doing this. Thanks for the reply.
0 Kudos