AnswerQuizQuestionRequest
A request or response body; the type column links to the schemas it refers to.
AnswerQuizQuestionRequest
| Field | Type | Required | Description |
|---|---|---|---|
| question_id | string (uuid) | yes | — |
| response_boolean | boolean | no | — |
| selected_option_ids | array of string (uuid) | no | multiple_choice: exactly one id. multi_select: the chosen ids. ordering: every presented item id, in the taker's arrangement. 1–20 items |
| response_text | string | no | short_answer: up to 500 characters. long_answer: up to 20000. 1–20000 characters |
| response_number | number | no | — |
| response_matches | array of ResponseMatch | no | 1–10 items |
| response_blanks | array of string | no | fill_in_blank: one entry per blank of the prompt, in order; leave an entry empty for a blank not yet filled, but fill at least one. 1–10 items |
| response_drawing | string | no | drawing: the taker's canvas as one image — the starting image, if any, beneath their strokes — as a base64 data URL (image/png, image/webp or image/jpeg). at most 4000000 characters · matches ^data:image\/(png|webp|jpeg);base64,[A-Za-z0-9+/]+=*$ |
jsonExample
{
"question_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
"response_boolean": true,
"selected_option_ids": [
"1b671a64-40d5-491e-99b0-da01ff1f3341"
],
"response_text": "string",
"response_number": 0,
"response_matches": [
{
"option_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
"match_option_id": "1b671a64-40d5-491e-99b0-da01ff1f3341"
}
],
"response_blanks": [
"string"
],
"response_drawing": "string"
}