API request not returning all results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Trying to retrieve all enrollments for a student or all users in a class.
When I ask for all for a student I am not seeing current year information. but seeing old last year data.
/api/v1/users/sis_user_id:xxxxx/enrollments/?access_token=2698xxxxxx
When I try to get all the students in a section I just receive the observers and no students... Ok I can get studens from last year but only see observers for sections this year.
/api/v1/sections/sis_section_id:704.162.5580-2/enrollments/?access_token=2698xxxxx . Last year works
/api/v1/sections/sis_section_id:704.171.1857-1/enrollments/?access_token=2698xxxxx . this year only see observer no students.
So Confused.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The API has a default return set as 10 per page. You can either make use of the pagination strategy to get the next page of results or include a query string parameter of per_page to include more results in a single request.