Quiz Extensions
API for setting extensions on student quiz submissions
A QuizExtension object looks like:
Quizzes::QuizExtensionsController#create
POST /api/v1/courses/:course_id/quizzes/:quiz_id/extensions
POST /api/v1/courses/:course_id/quizzes/:quiz_id/extensions
Scope: url:POST|/api/v1/courses/:course_id/quizzes/:quiz_id/extensions
Responses
200 OK if the request was successful
403 Forbidden if you are not allowed to extend quizzes for this course
Request Parameters:
quiz_extensions[][user_id]
Required integer
The ID of the user we want to add quiz extensions for.
quiz_extensions[][extra_attempts]
integer
Number of times the student is allowed to re-take the quiz over the multiple-attempt limit. This is limited to 1000 attempts or less.
quiz_extensions[][extra_time]
integer
The number of extra minutes to allow for all attempts. This will add to the existing time limit on the submission. This is limited to 10080 minutes (1 week)
quiz_extensions[][manually_unlocked]
boolean
Allow the student to take the quiz even if it’s locked for everyone else.
quiz_extensions[][extend_from_now]
integer
The number of minutes to extend the quiz from the current time. This is mutually exclusive to extend_from_end_at. This is limited to 1440 minutes (24 hours)
quiz_extensions[][extend_from_end_at]
integer
The number of minutes to extend the quiz beyond the quiz’s current ending time. This is mutually exclusive to extend_from_now. This is limited to 1440 minutes (24 hours)
Example Request:
Example Response:
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated