Update a question
classmarker_update_questionDestructiveIdempotent
WRITE (overwrites): replace an existing question-bank question. Send the COMPLETE question (type, text, options, correct options, points, feedback), not only the changed fields; read it first with classmarker_get_question. Only multiplechoice, multipleresponse, truefalse and essay questions can be updated. Counts as one of ClassMarker's 30 requests per hour per API key. API: PUT /v1/questions/{question_id}.json.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | Points for a correct answer (for an essay: the maximum score). | |
| options | No | Answer options keyed by letter A-J (up to 10), e.g. {"A": "Apply oil", "B": "Soak in water"}. Needed for multiplechoice and multipleresponse; not allowed for truefalse and essay. | |
| question | Yes | The question text. | |
| category_id | No | Category id (from classmarker_list_categories). | |
| grade_style | No | multipleresponse only: partial credit with or without deduction, or off (all-or-nothing). | |
| question_id | Yes | The question id (from classmarker_list_questions). | |
| question_type | Yes | multiplechoice (one correct option), multipleresponse (one or more), truefalse, or essay (graded by hand). Free text, grammar and matching cannot be written. | |
| random_answers | No | Shuffle the order of the options for each test-taker (multiplechoice / multipleresponse). | |
| correct_options | No | Letters of the correct options, e.g. ["C"]. multiplechoice: exactly one; multipleresponse: one or more; truefalse: ["A"] (True) or ["B"] (False); not allowed for essay. | |
| correct_feedback | No | Feedback shown for a correct answer. | |
| incorrect_feedback | No | Feedback shown for an incorrect answer. |