Create questions
Changed onCreate 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
- Base URLhttps://api.skilljar.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
OK
Changes
- warning
added the new
already_in_pathenum value to the////response property for the response status - warning
added the new
already_in_pathenum value to the////response property for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- warning
- info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/vnd.api+jsonfor the response status
- info