Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
I originally asked this question on the user forum and was directed to ask here!
Hello all,
I have a class with somewhere around 20 quizzes. I'd like to include instructions (the same for each quiz) that they will see before they begin each. I am assuming the only way to accomplish this is to go into every quiz and add the information individually.
Is there possibly a way to batch upload the same instructions to every quiz?
Thanks much!
Pat
Hi, @pimmel2 , actually, @kona has already tagged the Canvas Developers on the question that you posted in the Higher Education group (https://community.canvaslms.com/message/61163-batch-upload-quiz-instructions ). In order to conserve community resources and keep responses unified under a single thread, I've locked the duplicate question, and I've shared this one back to the https://community.canvaslms.com/groups/higher-ed?sr=search&searchId=6b763021-c110-48e5-b149-af83df30... group so that members of both groups can see it.
Thanks Stefanie...I'll just sit back and listen and try not to confuse anything further...LOL!
Thanks again.
Hi Patrick,
Oddly enough, I cannot seem to be able to just "add" instructions to a quiz that already exists. If I try to edit the quiz this way, the description doesn't change for some reason. I found that I can do this only if I am creating the quiz in the same step. Using the following logic should work if you do not have the quizzes uploaded already:
POST /api/v1/courses/:course_id/quizzes/
BODY
quiz[title] = "Quiz A"
quiz[description] = "These are the instructions for the quiz"
You can write a loop that creates multiple quizzes and just inserts these instructions as they are created. Sorry if this does not resolve the issue entirely.
Thank you Parsa! I'll give this a try when I am setting up my classes next semester. Have a great day!
Pat
You're welcome! I actually just now found out that you CAN edit a quiz that is already there. I believe you have to put the editing parameters inside the header, not the body. You can do this inside the query string. A PowerShell example would be:
Invoke-RestMethod "https://school.instructure.com/api/v1/courses/:course_id/quizzes/:quiz_id?quiz[description]=These%20..." -method put -headers @{"Authorization" = "Bearer $auth"}
Let me know if you have any questions.
To participate in the Instructure Community, you need to sign up or log in:
Sign In