简体   繁体   中英

Canvas-lms - submitting an answer via API

How do I submit an answer to a quiz by API? I believe can be done via https://canvas.instructure.com/doc/api/quiz_submissions.html - POST /api/v1/courses/:course_id/quizzes/:quiz_id/submissions , but how to I actually provide the answer to that request? There's no parameter in it which looks like it's what I'm looking for. Or maybe I have to use another end point?

The API endpoint you need is this one. You will need to create an answer json object depending on the "question type" of the question you're trying to answer (see this appendix)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM