How to GET Canvas_Course_ID using API, knowing Course_SYS_ID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I have trouble to get Canvas_Course_ID with API. I know I can get the Course data by using API /api/v1/courses/:id with ":id" been the Canvass_Course_Id (below in bold). But I would like to use SYS_ID to actually get Canvas_Course_ID.
Is it even possible?
Thank you. Alona
GET https://sandiego.instructure.com/api/v1/courses/14019
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AlonaLanski,
if you take a look at the sis_ids api documentation, you'll see you should be able to visit /api/v1/courses/sis_course_id:ABCDEFG (replace ABCDEFG with your own sis_id). The API response will include the canvas_id of the course you specified.
Hope this helps!
-Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AlonaLanski,
With your example, the correct url would be: https://sandiego.instructure.com/api/v1/courses/sis_course_id:202409-ESH-502-01. Let us know if that works.
-Chris