API request not returning all results

Jump to solution
craig_curtis
Community Novice

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.

1 Solution

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. 

View solution in original post