configure_quiz
Create or update a quiz shell without questions, idempotently by slug, and combine with import_gift to populate questions.
Instructions
Create or update a quiz shell (no questions). Idempotent by slug. Default: hidden, unlimited attempts, grade=10, method=highest. The plugin resolves section_num (section number) to section ID internally. Combine with import_gift to populate questions, or use publish_exam_lesson for both in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slug | Yes | Stable key used to build the quiz idnumber | |
| grade | No | ||
| intro | No | ||
| visible | No | ||
| attempts | No | ||
| timeopen | No | ||
| course_id | Yes | ||
| timeclose | No | ||
| grademethod | No | highest | |
| section_num | No | Section NUMBER (0 = General, 1..N = topics). Will be resolved to section ID by the plugin. | |
| timelimit_seconds | No |