questionBank_riddleBlockItems
Counts, per criterion of a QuestionBank block, how many published items in the bank currently match it - this is a count preview, NOT a preview of the items a real draw would pick. For each questionBankCriteria entry it returns {blockType, category, count}, where count is every published item matching that criterion's category, difficultyRange and blockType; no items are drawn, selected or returned, and maxNumberOfQuestions is deliberately ignored, so count can be (and often is) higher than what the block will actually show once published - an actual draw caps at maxNumberOfQuestions (a positive integer when the criterion sets it; a criterion that omitted it had a cap written in for it at build time as min(5, max(1, this same matching count)), so it is never uncapped). Use this to answer "does this criterion match anything, and roughly how much inventory is there", not "here is what the Riddle will show" - publish is only hard-blocked (QUESTION_BANK_NO_ITEMS_MATCH) when EVERY criterion of EVERY QuestionBank block in the Riddle matches zero published items; a criterion that matches too few items, or none, while another criterion still matches something, publishes silently with no warning, so this is how to find that out yourself before publishing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blockId | Yes | The id of the QuestionBank block within that Riddle, as returned by riddle_get. | |
| riddleUUID | Yes | The UUID of the Riddle that contains the QuestionBank block. |