Are Module id numbers unique within an Institution's Canvas space?

Jump to solution
dan_baeckstrom
Community Explorer

I am developing browser extensions for Canvas, and one question that is becoming important to me is whether the property data-module-id  which is assigned to every module (68197 in the image) is unique not only to the the course in question but also among all the courses in a Canvas space. This would matter for my programming strategy. Thanks in advance.

 

dan_baeckstrom_0-1620813221875.png

 

Labels (1)
0 Likes
1 Solution
robotcars
Community Champion

@dan_baeckstrom 

Yes. 

module_id and module_item_id, and pretty much any other course content ID* would be unique to the instance (yours), as well as the shard you are on... ie a multi-tenant environment, as most schools are hosted on a shared space. Consider them unique like a row in a database table.

* Just as @Ron_Bowman points out, any copy of content from Templates/Commons/Blueprint generates duplicates of that content into the new course shell.

View solution in original post