- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022
07:50 AM
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?
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022
07:58 AM
Could it be that one of the calls isn't including enrollments that haven't been accepted?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022
04:37 AM
Hmmm...could be. I'll have to do some digging. Thanks for the suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2022
08:00 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022
04:38 AM
I was doing this. Thanks for the reply.
