I am trying to use the API to create a question group in a quiz which picks questions from one of the many question banks that exist in my course. The API says I can specify "The id of the assessment question bank to pull questions from", but I do not know how to have my program determine the ID of the question bank I want to use. I know the name of the question bank and by looking at the XML of the exported quiz I know the <sourcebank_ref>g950c49cea8cf545555722ed05a8c3f4dc</sourcebank_ref>. However, the assessment_question_bank_id is an integer and the sourcebank_ref is not, so that can't be it.
Hi Rainer
While I don't know API from UPS, I do have some slight understanding of IDs in Canvas, and Canvas likes integers.
Go to the course that has the Question bank, and open the question bank. Look at the URL for that bank, and you will find its ID.
In this example from one of my courses, https://tacomacc.instructure.com/courses/1746254/question_banks/4398725 , the question bank ID is 4398725.
I hope this is helpful,
Kelley