The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
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.
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.
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.
omg, Thank you!! Can't believe I didn't try an empty string. It works!
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in