mfbutner
Community Member

Is There a Test Bank API

Jump to solution

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.

Labels (1)
1 Solution
levi_magnus
New Member

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.

View solution in original post

2 Replies
levi_magnus
New Member

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.

0 Kudos