Are Module id numbers unique within an Institution's Canvas space?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.