Show Quiz Results via Canvas REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to hide/show quiz results through Canvas REST API as guided here: https://canvas.instructure.com/doc/api/quizzes.html
I was able to change the "hide_results" from null to "always" (i.e., from showing the results to hiding the results). However, I failed to set it back (i.e., from "always" to null - from hiding results to showing).
Here's the JSON data I tried to PUT. The response code was 200, but nothing changed.
"quiz":
{
"hide_results": null,
"show_correct_answers": true,
"notify_of_update": false
}
}
Any help would be appreciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your post is a couple of years old at this point, but I just ran into the same issue. Setting hide_results to null effected no change. The field stuck to its original value.
I surmised that the null was getting filtered out somewhere. So I tried setting hide_results to the empty string. It worked. Canvas really set it to null.