AnsweredAssumed Answered

How do I construct API Command URL with parameters array

Question asked by Alexei B on Mar 30, 2018
Latest reply on Mar 31, 2018 by Matt Hanes

How do I construct API Command URL with parameters array?

For single parameter this works:

  • /api/v1/courses/34/users?enrollment_type=student

But enrollment_type also accepts an array of types, however nether of following works:

  • /api/v1/courses/34/users?enrollment_type=student,teacher
  • /api/v1/courses/34/users?enrollment_type=[student,teacher]
  • /api/v1/courses/34/users?enrollment_type[]=[student,teacher]

 

So, what's the correct form for passing array?  

Thanks!

Outcomes