Removing the completion_requirement for a module item via CanvasAPI

Jump to solution
AlexeiNovikov
Community Novice

Is that possible? I am using Python wrapper for CanvasAPI.

I can change it to one of the listed values ("must_submit", "must_view", etc) using ModuleItem.edit() API call, but any attempt to clear it gives an error. I tried passing

module_item={"completion_requirement:{"type":None}}

module_item={"completion_requirement:{"type":"None"}} 

module_item={"completion_requirement:{"type":""}}

I also don't see any other possible API calls to accomplish it.

Thanks.

Labels (1)
0 Likes
1 Solution
AlexeiNovikov
Community Novice
Author

It looks like module_item={"completion_requirement":""} works.

Even though module_item={"completion_requirement":{}} and module_item={"completion_requirement":None} did not.

View solution in original post

0 Likes