The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
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.
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.
What is happening?
Just tried this one.
/api/v1/accounts/1/admins?access_token=2698~xxxxxxxx
I get 10 items back in the json. The account has 28 admins.
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.
Hi @craig_curtis ,
JEFHQ12951 has given some great advice which would be my first thoughts as well. When you implement pagination can you let us know if that solves your original issue as well?
Cheers,
Stuart
Thanks,
Yes it is/was pagination issue.
Craig
On Fri, Mar 23, 2018 at 5:45 PM, stuart.ryan@uts.edu.au <
Thanks so much for the clarification Craig.
Cheers,
Stuart
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in