Retrieving users in course with email does not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018
08:58 AM
I have the following (relative) URL to retrieve students from a course and include their email address. The student users are returned, but the email attribute is missing from the JSON. I may be using the include parameter incorrectly, but I can't think of another way to do it.
courses/sis_course_id:341466/users?enrollment_type=student&include=email&per_page=40
Thanks for any help.
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2018
09:18 AM
You were very close! It should be like this with square brackets after include:
courses/sis_course_id:341466/users?enrollment_type=student&include[]=email&per_page=40