[ARCHIVED] Multiple values in the LIVE API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm creating custom gradebook columns using the live API. Is it possible to enter multiple values for the course_id field or must it be done one-by-one? Example here:
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The course_id is part of the path in the URL. As such, it cannot accept more than one value at a time.
Properties that can accept multiple values have [ ] in them. That's also used to indicate properties of an object, in which case you're passing multiple properties rather than multiple values. The properties that take multiple values typically have empty brackets at the end [ ]. For example include[], student_ids[], or assignment_ids[].
The Live API was designed for exploration, testing, and understanding. If you're going to use the API in production and do something for a lot of courses, you should probably write a program to make those calls.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.