How to Add Questions to a Quiz via API (After Quiz is Created)?
Hi everyone,
I’ve successfully created a quiz via the D2L API, and now I’m trying to add questions to that quiz programmatically.I’ve already reviewed the Valence API scopes, especially the quizzing:quiz:modify
and related scopes, but I couldn’t find clear documentation or examples on how to create quiz questions and attach them to an existing quiz or endpoint create question directly.
A few things I’m trying to clarify:
- Is there a supported endpoint for creating quiz questions (e.g., multiple choice, true/false)?
- Any sample payloads, workflows, or API references that could point me in the right direction?
Any guidance or code samples would be a huge help 🙏
Thanks in advance
Answers
-
Hello @Soi.C.5795,
Thank you for contacting the Brightspace Community with your question.
You are completely right, after validating and investigating further, the APIs currently only allow you to create/update a quiz’s configuration properties.
However, there is an option that might be helpful: you can import questions to your Question Library or directly to your quizzes by using a CSV file. The following article will provide all the necessary information:
When you click the "Upload a File" option, you'll find a template to start building your file:
I hope this information is helpful.
Pilar Medina Norena