cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ChristineBoard
Community Member

API New Quiz ModuleItem Type

Jump to solution

Is there any way currently or planned for the Modules API to distinguish between new quizzes and other assignments? We are getting all new quiz moduleItem objects with a type of "Assignment" while classic quizzes have "Quiz."

0 Kudos
1 Solution
stimme
Community Contributor

It looks to me like there's a boolean quiz_lti key in module items returned by the endpoint to list module items (https://canvas.emory.edu/doc/api/modules.html#method.context_module_items_api.index). It appears to be true for New Quizzes (presumably to help present special options in the triple dot menu for New Quizzes module items). This should help to distinguish between New Quizzes & other assignments.

View solution in original post

0 Kudos
2 Replies
stimme
Community Contributor

It looks to me like there's a boolean quiz_lti key in module items returned by the endpoint to list module items (https://canvas.emory.edu/doc/api/modules.html#method.context_module_items_api.index). It appears to be true for New Quizzes (presumably to help present special options in the triple dot menu for New Quizzes module items). This should help to distinguish between New Quizzes & other assignments.

0 Kudos

Fantastic, that was just what I needed!

0 Kudos