Skip to main content
Answer

Get Enrollments By Session ID

  • March 23, 2023
  • 1 reply
  • 100 views

Hi,

I am going to call API get_multiple_ilt_sessions to get session enrollment. Could you let me know how to change current_page_size which is 10 by default?

Thanks,

Liza

Best answer by Bfarkas

usually it’s just a variable on the end of the get url of page_size=200

changing the number to what you want. if it’s the first variable you put a ? before, if it’s not the first then you put a & before it. Note, I haven’t used this exact endpoint and not at my computer to check it, but generally these points limit to a max of 200 returns at most, you use page_size in combination with page to call which page you want, page 1 is 1-200, page 2 is 201-400, so on. If your results are long you have to loop through the results to get the full list. 

1 reply

Bfarkas
Hero III
Forum|alt.badge.img+6
  • Hero III
  • Answer
  • March 25, 2023

usually it’s just a variable on the end of the get url of page_size=200

changing the number to what you want. if it’s the first variable you put a ? before, if it’s not the first then you put a & before it. Note, I haven’t used this exact endpoint and not at my computer to check it, but generally these points limit to a max of 200 returns at most, you use page_size in combination with page to call which page you want, page 1 is 1-200, page 2 is 201-400, so on. If your results are long you have to loop through the results to get the full list.