API error: "SIS ID \"123ABC\" is already in use"

Jump to solution
swaldie
Community Explorer

I've been testing course creation/deletion via API. So far so good, except when I attempt to assign a value to the sis_course_id that was used for a course that I previously created/deleted.

What is the best way to overcome this hurdle?

1 Solution
bneporadny
Community Champion

Hi shawn,

Even though  you are calling the delete course api‌, you're not actually deleting the course, Canvas simply marks the course as delete and hides it from you being able to view or search for it through the gui‌.  This is done so that if you delete a course accidentally, you're able to use the restore course feature to retrieve the course and mark it active again. 

Unless you're changing or removing the #sis_course_id‌ prior to marking the course as deleted you're not going to be able to reuse the same #sis_course_id‌ again. 

Hope this helps. 

View solution in original post