How to add answer options to a MCQ quiz question using the API

Jump to solution
RatishRamapurat
Community Member

Can someone help with the syntax to be used while importing a Classic Quiz question and answer, Type multiple_choice_questionmultiple_dropdowns_question, multiple_answers_question,

Would be great if someone can help understand the API with an example of either of the question types listed above.

Thanks in advance.

Labels (1)
0 Likes
1 Solution
igustafson
Instructure
Instructure

Hello @RatishRamapurat 

Glad to help with this. So with regards to adding question types you want to follow the steps here https://canvas.instructure.com/doc/api/quiz_questions.html#method.quizzes/quiz_questions.create

in regards to the specifics this is a good example "POST /api/v1/courses/:course_id/quizzes/:quiz_id/questions?question[question_type]=whatever&question[points]=whatever&"

I hope this helps answer the question.

Regards,

Ian

View solution in original post