I am working on a block which imports questions from Quizlet into the question bank and creates a quiz using the site defaults from those questions. I have the import working and I am looking to auto-create the quiz. I see the function quiz_add_instance takes an object, but I am not sure all of the variables I need to define. Is the $quiz object documented somewhere? Also does quiz_add_instance handle all the necessary info that the course and section needs to display properly?
Thanks for any assistance.