Update quiz settings
moodle_update_quiz_settingsUpdate specific Moodle quiz settings by changing only the fields provided, leaving others unchanged, and return the saved settings.
Instructions
Changes quiz settings; only the given fields are modified. Returns the settings after saving.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cmid": "<cmid>"
},
"name": "moodle_update_quiz_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmid | Yes | ||
| name | No | ||
| intro | No | Description (HTML) | |
| review | No | Review options: what students see during the attempt, immediately after, later while open, after closing | |
| subnet | No | ||
| visible | No | Show the quiz to students | |
| attempts | No | Attempts allowed, 0 = unlimited | |
| timeopen | No | "YYYY-MM-DD HH:MM" in the Moodle user timezone; null = no opening date | |
| gradepass | No | Grade to pass | |
| navmethod | No | ||
| timeclose | No | "YYYY-MM-DD HH:MM"; null = no closing date | |
| raw_fields | No | Advanced: raw modedit form fields to override (null = unset/uncheck) | |
| grademethod | No | ||
| quizpassword | No | ||
| attemptonlast | No | ||
| decimalpoints | No | ||
| repaginatenow | No | ||
| shuffleanswers | No | ||
| browsersecurity | No | "-" none, "securewindow" full screen popup | |
| overduehandling | No | ||
| showdescription | No | ||
| canredoquestions | No | ||
| questionsperpage | No | New page every N questions, 0 = all on one page | |
| timelimit_minutes | No | 0/null = no time limit | |
| preferredbehaviour | No | deferredfeedback | interactive | immediatefeedback | adaptive | adaptivenopenalty | deferredcbm | immediatecbm |