AnswerQuizQuestionRequest

A request or response body; the type column links to the schemas it refers to.

AnswerQuizQuestionRequest

FieldTypeRequiredDescription
question_idstring (uuid)yes—
response_booleanbooleanno—
selected_option_idsarray 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_textstringno

short_answer: up to 500 characters. long_answer: up to 20000.

1–20000 characters

response_numbernumberno—
response_matchesarray of ResponseMatchno

1–10 items

response_blanksarray of stringno

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_drawingstringno

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"
}