As far as I can tell, there is no way in the API identify which question groups are in a quiz, like you can for questions.
The question api has this:
It returns all of the questions, but this does not return question groups, and there is no correlating question group call in the API. The closest thing is this:
But this is for a single question group and it requires that you know the group ID, which of course you don't because you can't ask a quiz which question groups are in it. I would expect to see something like this, parallel to the question API, to get all the question groups in a quiz:
But making that call returns NULL. Anyone have any suggestions on how to get the question groups in a quiz? Without them there is no way to pull out data for a complete quiz or use the API to tie outcomes to a quiz.