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!
Are there any APIs for accessing a Test Bank (creating, adding questions to a Test Bank, moving questions between banks, etc)? I'm new to working with the API so I'm not sure if I missed it or it is hiding somewhere.
Solved! Go to Solution.
Unfortunately, there is not a Question Bank API. There is a feature idea https://community.canvaslms.com/ideas/11546-add-question-bank-key-to-the-quiz-questions-api?sr=searc... that is open for voting and it proposes several new endpoints that would enable creating new banks, adding questions to banks, and moving questions between banks through the existing Quiz Questions API.
I'm posting in hopes of being helpful to anyone who stumbles on this thread. There seems to be some confusion regarding quiz QTI import via the API. It is not only possible, but works pretty well. I don't use the question banks (posting a new quiz via the API is MUCH faster in my workflow) so I don't know how they are structured. However, if it is in a QTI format, there is no reason it cannot be done. I can import multiple QTI-structured quizzes packaged into a single zipped file via the API within a few seconds.
The process is not obvious, but the API is documented:
https://canvas.instructure.com/doc/api/all_resources.html#method.content_migrations.create
To employ the API, you must first understand how to upload a file to canvas. After that, importing a QTI is trivial.
Unfortunately, giving someone step by step instructions on how to accomplish this isn't practical at this point. However, if someone is interested, I'm happy to facilitate.
Unfortunately, there is not a Question Bank API. There is a feature idea https://community.canvaslms.com/ideas/11546-add-question-bank-key-to-the-quiz-questions-api?sr=searc... that is open for voting and it proposes several new endpoints that would enable creating new banks, adding questions to banks, and moving questions between banks through the existing Quiz Questions API.
I'm posting in hopes of being helpful to anyone who stumbles on this thread. There seems to be some confusion regarding quiz QTI import via the API. It is not only possible, but works pretty well. I don't use the question banks (posting a new quiz via the API is MUCH faster in my workflow) so I don't know how they are structured. However, if it is in a QTI format, there is no reason it cannot be done. I can import multiple QTI-structured quizzes packaged into a single zipped file via the API within a few seconds.
The process is not obvious, but the API is documented:
https://canvas.instructure.com/doc/api/all_resources.html#method.content_migrations.create
To employ the API, you must first understand how to upload a file to canvas. After that, importing a QTI is trivial.
Unfortunately, giving someone step by step instructions on how to accomplish this isn't practical at this point. However, if someone is interested, I'm happy to facilitate.
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