Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ankur_gupta
New Member

Enrollment api giving only 10 enrolments in a course

Jump to solution

I am calling enrollment api for getting all the students in the course by using course_id, but it only gives 10 enrolments and actually course have 16 students in it.

GET /api/v1/courses/:course_id/enrollments

"/api/v1/courses/".$course_id."/enrollments/";

Please help me, how can i list all the students enrolled in a course?

1 Solution

Accepted Solutions
ankur_gupta
New Member

Adding per_page=100 worked for me Smiley Happy

View solution in original post

2 Replies
ankur_gupta
New Member

Adding per_page=100 worked for me Smiley Happy

I also had this problem when pulling course enrollments.  I eventually had to paginate my API responses in order to pull all the information necessary.  I hope this helps. 

Jason