Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
I feel like the community will give me a clearer answer than Canvas support. Our schools is working on integrating Simple Syllabus and we were setting up the API key. I asked if the Quizzes endpoint included both New Quizzes and Classic Quizzes since our school is transitioning to use both. Our rep was going to look into it, but I did some testing in my sandbox course using the regular quizzes endpoint GET /api/quiz/v1/courses/:course_id/quizzes. Using this, I realized only classic quizzes were pulling from my sandbox course. I tried looking for New Quiz documentation, which I see is listed separately in the documentation, but it looks like it has the same endpoint. https://canvas.instructure.com/doc/api/new_quizzes.html#method.new_quizzes/quizzes_api.show
Should New Quizzes be showing in this GET call? If the calls are the same, why is there separate documentation for "New Quizzes" and "Quizzes"? Or is this still an Instructure work in progress?
Thanks in advance for any input!
Solved! Go to Solution.
I believe New Quizzes is still a work in progress. Based on my testing, it has some limitations (e.g., the "List quiz items" endpoint returns blank, and editing quizzes only works for those without submissions).
There’s a difference between the two endpoints: Classic Quizzes use /api/v1/courses/...
, while New Quizzes use /api/quiz/v1/courses/...
You can use the following endpoint to pull a list of all quizzes (including both Classic and New Quizzes) within a course: GET /api/v1/courses/id/all_quizzes/
I believe New Quizzes is still a work in progress. Based on my testing, it has some limitations (e.g., the "List quiz items" endpoint returns blank, and editing quizzes only works for those without submissions).
There’s a difference between the two endpoints: Classic Quizzes use /api/v1/courses/...
, while New Quizzes use /api/quiz/v1/courses/...
You can use the following endpoint to pull a list of all quizzes (including both Classic and New Quizzes) within a course: GET /api/v1/courses/id/all_quizzes/
Thank you @jerry_nguyen, this is exactly what I was looking for! Thanks also for pointing out the difference between the endpoints-- I hadn't caught that the change. This is useful information as we move forward with our transition to New Quizzes.
To participate in the Instructure Community, you need to sign up or log in:
Sign In