Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
does anyone know if you can get an assignment back via the API by it's integration_id?
I have tried: https://*******/api/v1/courses/1028/assignments/integration_id:6539fcc2-27c7-49b5-beda-739472861344_...
the concept worked for me when i wanted to get a course by the sis_id URL + "sis_course_id:12345" so i was hoping integration_id would also work.
IDs are either the internal Canvas ID, or one of the SIS ones: Object IDs, SIS IDs, and special IDs - Canvas LMS REST API Documentation
@aday it doesn't look like you can ask for a specific assignment by [integration_id].
It would be possible to make this call: Assignments - List assignments
Then dump the results into a hash table where assignment.integration_id <> null, using the integration_id as the key.
At that point you can easily pull the assignment from the hash table.
If this is something you do frequently for a course, perhaps cache the results so you can more quickly cross-reference your integration_id with the Canvas assignment id.
If you are creating the assignments, perhaps create the cache as you create the assignments.
Or if you are bulk importing the assignments, create the cache during the import process.
Just ideas, hope it helps.
Ya, thanks that is what I did. But it would be nice if every object had a primary key and a sis_id you can query on
Sent from Nine<http://www.9folders.com/>
To participate in the Instructure Community, you need to sign up or log in:
Sign In