save_quiz_attempt_responses
Save in-progress quiz answers without finishing the attempt; preview changes with dry_run=True, then confirm with dry_run=False to persist responses.
Instructions
Save in-progress answers WITHOUT finishing the attempt -- can still be changed later. UNVERIFIED against a real quiz.
Call with dry_run=True (default) first, show the preview to the user, and only call again with dry_run=False after they explicitly confirm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Quiz page number these responses are for. | |
| dry_run | No | If True (default), only preview saving without doing it. Call again with dry_run=False (same parameters) to actually save it. | |
| responses | Yes | Moodle question-form field name -> answer value, parsed from get_quiz_attempt_data's returned HTML. | |
| attempt_id | Yes | Attempt id, e.g. from start_quiz_attempt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| message | Yes | ||
| preview | Yes | ||
| executed | Yes |