Quiz question update API returns 200 response and Quiz object instead of updating quiz question answer

Margaretha
Community Member

In our test environment I submitted a put Question update as per Canvas API https://canvas.instructure.com/doc/api/quiz_questions.html.  A Quiz Question object should be returned.  Instead I'm getting a Quiz object.

Payload:

https://xxx.test.instructure.com/api/v1/courses/399/quizzes/6324/questions/154371?question[answers]=... Answer[answer_text]='Database server MMM', Answer[answer_weight]=0.0}]

Response:

<Response [200]>

 Response content:

b'{"id":xxx,"title":"3-[CF]-KC - Basic Computing Concepts ","html_url":"https://xxx.test.instructure.com/courses/399/quizzes/6324","mobile_url":"https://xxx.test.instructure.com/courses/399/quizzes/6324?force_user=1\\u0026persist_headless=1","description":"","quiz_type":"assignment","time_limit":null,"timer_autosubmit_disabled":false,"shuffle_answers":false,"show_correct_answers":false,"scoring_policy":"keep_highest","allowed_attempts":-1,"one_question_at_a_time":false,"question_count":5,"points_possible":5.0,"cant_go_back":false,"access_code":null,"ip_filter":null,"due_at":null,"lock_at":null,"unlock_at":null,"published":false,"unpublishable":true,"locked_for_user":true,"lock_info":{"missing_permission":"participate_as_student","asset_string":"quizzes:quiz_6324"},"lock_explanation":"This quiz is currently locked.","hide_results":null,"show_correct_answers_at":null,"hide_correct_answers_at":null,"all_dates":[{"due_at":null,"unlock_at":null,"lock_at":null,"base":true}],"can_unpublish":true,"can_update":true,"require_lockdown_browser":false,"require_lockdown_browser_for_results":false,"require_lockdown_browser_monitor":false,"lockdown_browser_monitor_data":"","speed_grader_url":null,"permissions":{"manage":true,"read":true,"create":true,"update":true,"submit":true,"preview":true,"delete":true,"read_statistics":true,"grade":true,"review_grades":true,"view_answer_audits":false},"quiz_reports_url":"https://awstechu.test.instructure.com/api/v1/courses/399/quizzes/6324/reports","quiz_statistics_url":"https://awstechu.test.instructure.com/api/v1/courses/399/quizzes/6324/statistics","message_students_url":"https://awstechu.test.instructure.com/api/v1/courses/399/quizzes/6324/submission_users/message","section_count":1,"important_dates":false,"quiz_submission_versions_html_url":"https://awstechu.test.instructure.com/courses/399/quizzes/6324/submission_versions","assignment_id":15492,"one_time_results":false,"only_visible_to_overrides":false,"assignment_group_id":1241,"show_correct_answers_last_attempt":false,"version_number":14,"has_access_code":false,"post_to_sis":false,"migration_id":"g70bdcc637df328d3252e1e519f6e3493","in_paced_course":false,"question_types":["multiple_choice_question","multiple_answers_question"]}'
Labels (1)
0 Likes