Update quiz settings
quiz_settings_updateChange one graded quiz's pass mark and attempt limit, and whether the course completes only when its quizzes are passed, without resending the course: the safe alternative to rewriting the lessons with course_content_set or the whole certificateConfig with course_update. Send at least one of passMarkPercent, maxAttempts and completeOnlyOnPass; fields you leave out keep their current value, and values already in place change nothing. A pass mark or attempt change saves ONE new content version that is the current one with only this quiz's two settings changed, so every other block, id and learner record stays as it is; if someone saves the course at the same moment, the change is rebuilt on their version, never applied to an older one. completeOnlyOnPass changes only the course's completion rule and keeps the rest of certificateConfig (certificate template, statement codes, reading gate). New values apply to attempts started or submitted from now on: past attempts keep their recorded score and pass or fail, and a learner who already used more attempts than a lowered limit cannot start another. Returns the quiz's settings after the call (the quiz_settings_get shape) plus changed, the fields that actually changed (empty when nothing did). An invalid value is rejected with the field and its allowed range, and an id that is not a graded quiz in the current content is a not-found error.
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": {
"courseId": "<courseId>",
"quizBlockId": "<quizBlockId>"
},
"name": "quiz_settings_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| authorId | No | User recorded as the new content version's author; must belong to this site. Defaults to the connection's owning user. | |
| courseId | Yes | Course id, as returned by course_list. | |
| maxAttempts | No | How many times each learner may take this quiz: a whole number 1 or more, or 0 or null for unlimited. | |
| quizBlockId | Yes | The quiz block's `id` from course_content_get (a block of type "quiz"). | |
| passMarkPercent | No | Score in percent a learner needs to pass this quiz: a whole number from 0 to 100 (new quizzes start at 80). | |
| completeOnlyOnPass | No | Course-wide, not just this quiz. true makes the course complete (and certify, when it issues a certificate) once the learner has passed every graded quiz in it, even with other content unfinished; the course needs a quiz inside a unit (under an H3 header). false turns that rule back to the default, where all content must be complete; a progress-percentage rule is kept. Leave it out to keep the current rule. |