f8025de20169
Create questions
Create up to BATCH_MAX_ITEMS questions (each with its answers) in one request.
A question is homed under a quiz XOR a question bank, so the write route accepts either quizzes:write OR question-banks:write (OR logic). The data array must contain at least one item and at most BATCH_MAX_ITEMS items. Each item is processed independently in its own atomic block — a failure on one row does not abort the rest. Response is 200 if all items succeed, 207 if any fail, 400 if the request envelope is empty or over the cap.
A malformed / missing / cross-org / soft-deleted parent surfaces as a per-item not_found (like create_lessons' bad-course path). Per-type, XOR, and shape validation happen up-front in Pydantic and return a document-level 422.
See api_v2/docs/batch-responses.md for the 200/207/400 status convention and per-item error code vocabulary.
Required OAuth scope: question-banks:write or quizzes:write
Request body
Response
OK