cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RatishRamapurat
New Member

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

Jump to solution

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 Kudos
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

0 Kudos
1 Reply
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

0 Kudos