The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hello,
I was looking through the Modules API (https://canvas.instructure.com/doc/api/modules.html), but couldn't find a way to assign modules to sections in bulk. I have 5 courses, each with over 300 modules that I need to assign to 2 out of 6 different sections... I'm really hoping I don't have to do that much clicking 🙂
Thanks,
Dave
Solved! Go to Solution.
Hey Dave,
It seems that /v1/courses/{course_id}/modules/{context_module_id}/assignment_overrides may do what you need. I haven't used that particular endpoint myself, but it seems it should do the trick.
Best,
-Mark
Hey Dave,
It seems that /v1/courses/{course_id}/modules/{context_module_id}/assignment_overrides may do what you need. I haven't used that particular endpoint myself, but it seems it should do the trick.
Best,
-Mark
Hi @dheup
If you already have the internal module ID you want to map, this API call should handle it in a single request.
Here is the API endpoint for Bulk Module assignment override.
curl https://<canvas>/api/v1/courses/:course_id/modules/:context_module_id/assignment_overrides \
-X PUT \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"overrides": [
{
"id": 212,
"course_section_id": 3564
},
{
"id": 56,
"course_section_id": 3564
},
{
"id": 378,
"course_section_id": 3556
}
]
}'
Let me know if you need assistance with this endpoint.
Best,
Xavier
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in