cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
andrew_bowns
New Member

Can I use an SIS Course ID in a URL to that course?

Jump to solution

I'm looking to use

https://example.instructure.com/courses/sis_course_id:CCRSECE-3730-25436.201740

Instead of just the usual course ID. Is this possible? And how would I do it?

Tags (2)
1 Solution
RobDitto
Community Champion

 @andrew_bowns  our developers actually tried constructing URLs that way and found that a user following such a link may see "Page Not Found" and be prompted to report a problem.

However, a developer can a very similar URL to obtain the ID and other information from a course using the Canvas Courses API, e.g.:
*GET https://canvas.upenn.edu/api/v1/sections/sis_section_id:SRS_ACCT-101-910%202017B*

GET https://example.instructure.com/api/v1/courses/sis_course_id:CCRSECE-3730-25436.201740

If the response includes a "course_id" value, the course URL will end with the returned "id" value from the API GET results, e.g.
https://example.instructure.com/courses/[returned "id" value]
https://canvas.upenn.edu/courses/[course_id

View solution in original post

5 Replies
kona
Community Coach
Community Coach

 @andrew_bowns , my initial thought is no, that wouldn’t work, but I’m not 100% on that. To get some extra help on this I’m sharing your question with the https://community.canvaslms.com/groups/admins?sr=search&searchId=0428ab9f-9847-4de0-81c9-362842759ef...‌ and https://community.canvaslms.com/groups/canvas-developers?sr=search&searchId=a61af088-0900-4c0b-972d-...‌ groups in the Community. Hopefully someone from there can give us a more definitive answer!

RobDitto
Community Champion

 @andrew_bowns  our developers actually tried constructing URLs that way and found that a user following such a link may see "Page Not Found" and be prompted to report a problem.

However, a developer can a very similar URL to obtain the ID and other information from a course using the Canvas Courses API, e.g.:
*GET https://canvas.upenn.edu/api/v1/sections/sis_section_id:SRS_ACCT-101-910%202017B*

GET https://example.instructure.com/api/v1/courses/sis_course_id:CCRSECE-3730-25436.201740

If the response includes a "course_id" value, the course URL will end with the returned "id" value from the API GET results, e.g.
https://example.instructure.com/courses/[returned "id" value]
https://canvas.upenn.edu/courses/[course_id

stuart_ryan
Community Coach
Community Coach

Hi  @andrew_bowns ,

That is a great question, as Rob said, though it is not possible at this time, I can certainly see how this would be incredibly useful. I think it would be a great candidate to put in as a feature idea here on the community, then you can drum up support, and see if anyone else might think this is a great idea.

If you do, feel free to share it back here so that anyone watching this discussion can jump over and vote on it for you!

Cheers,

Stuart

dgrobani
Community Participant

 @andrew_bowns ,

I'm unclear on the context in which you want to use that URL, but entering this in a browser should take you to that course:

https://example.instructure.com/accounts/YOUR_ACCOUNT/courses?course%5Bname%5D=CCRSECE-3730-25436.20...

I've created a Firefox keyword "cc" with the value "https://samuelmerritt.instructure.com/accounts/81827/courses?course%5Bname%5D=%s" and use this all the time to quickly navigate to a course by SIS ID.

Cheers,
Daniel

pklove
Community Champion

I think this only works for admins.  So if that is the context then this is really great Smiley Happy