AnsweredAssumed Answered

Canvas REST API: getting answer id's

Question asked by Joshua Deutsch on May 12, 2017
Latest reply on May 12, 2017 by Joshua Deutsch

In the REST API multiple choice questions have responses that are labeled with answer id's. To get at them, I'm going through a very circuitous path. First I get course submissions from a student that has actually taken the quiz/survey. Then I look at the submission_history, and then submission_data. Now I have a response that contains the question id. With that question id (and the quiz id) I can then query a single quiz question. The response contains an "answers" array. The answer array contains pairs of answer ids and the corresponding text.


This is quite inefficient but I can't seem to find out a more direct way of getting at the answer id <-> text mapping. Does anyone know of a more direct way?