set_student_new_quiz_accommodation
Apply time multiplier and extra attempts accommodations to a student for New Quizzes in Canvas – course-wide or for specific quizzes.
Instructions
Apply a time and/or attempts accommodation for a student across all New Quizzes in a course (course-level, single Canvas API call when no assignment_ids are given) or for a specified subset of New Quizzes (per-quiz fan-out when assignment_ids are given). New Quizzes use a time_multiplier (ratio, e.g. 1.5 for 1.5× time), not absolute minutes. For Classic Quizzes (quiz_type: assignment / practice_quiz / etc.) use set_student_quiz_accommodation instead. Partial per-quiz failures are tolerated — a failure on one quiz does not abort the rest. In per-quiz mode, fan-out is sequential (one Canvas API call per assignment ID, awaited in series). Canvas errors on the course-level path (no assignment_ids) propagate as a top-level error (no envelope). Returns a uniform envelope: scope ("course" or "per_quiz"), applied[], failed[], and summary. Provide user_id as the real Canvas user ID. If CANVAS_PSEUDONYMIZE_STUDENTS is enabled, call resolve_pseudonym first to obtain the real user_id from a pseudonym.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Real Canvas user ID of the student to accommodate | |
| course_id | Yes | Canvas course ID | |
| assignment_ids | No | Limit accommodation to these specific New Quiz assignment IDs. Omit to apply a course-level accommodation (covers all New Quizzes in the course with a single Canvas API call). When provided, fans out one call per assignment ID. | |
| extra_attempts | No | Additional attempts to grant beyond each quiz's default attempt limit. | |
| time_multiplier | No | Time multiplier for New Quizzes (e.g. 1.5 for 1.5× time, 2.0 for double time). This is the native New Quizzes field; Canvas applies it to each quiz's time limit. Must be > 1.0. Mutually exclusive with nothing — can be combined with extra_attempts. |