openapi: 3.2.0 info: title: Canvas LMS REST Course Quiz Extensions API version: v1 summary: The complete Canvas LMS REST API, converted from the Swagger 1.2 documents Instructure publishes under https://canvas.instructure.com/doc/api/. description: The Canvas LMS REST API covers courses, assignments, quizzes, grades, users, enrollments, accounts, files, modules, rubrics, submissions, SIS imports, LTI, analytics and account administration. contact: name: Instructure Canvas url: https://canvas.instructure.com/doc/api/ license: name: AGPL-3.0 url: https://github.com/instructure/canvas-lms/blob/master/LICENSE servers: - url: https://canvas.instructure.com/api description: Instructure-hosted Canvas (canvas.instructure.com) - url: https://{canvas_host}/api description: Any Canvas instance; Canvas is multi-tenant and self-hostable, so the host is the institution's Canvas domain. variables: canvas_host: default: canvas.instructure.com description: Your institution's Canvas hostname, e.g. school.instructure.com security: - bearerAuth: [] - oauth2: [] tags: - name: Course Quiz Extensions x-resource: course_quiz_extensions externalDocs: url: https://canvas.instructure.com/doc/api/course_quiz_extensions.html paths: /v1/courses/{course_id}/quiz_extensions: post: tags: - Course Quiz Extensions operationId: set_extensions_for_student_quiz_submissions summary: Set extensions for student quiz submissions description: 'Responses * 200 OK if the request was successful * 403 Forbidden if you are not allowed to extend quizzes for this course' parameters: - name: course_id in: path schema: type: string required: true description: ID requestBody: required: false content: application/json: schema: type: object properties: user_id: type: integer format: int64 description: The ID of the user we want to add quiz extensions for. extra_attempts: type: integer format: int64 description: '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.' extra_time: type: integer format: int64 description: '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)' manually_unlocked: type: boolean description: 'Allow the student to take the quiz even if it''s locked for everyone else.' extend_from_now: type: integer format: int64 description: '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)' extend_from_end_at: type: integer format: int64 description: '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)' required: - user_id application/x-www-form-urlencoded: schema: type: object properties: user_id: type: integer format: int64 description: The ID of the user we want to add quiz extensions for. extra_attempts: type: integer format: int64 description: '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.' extra_time: type: integer format: int64 description: '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)' manually_unlocked: type: boolean description: 'Allow the student to take the quiz even if it''s locked for everyone else.' extend_from_now: type: integer format: int64 description: '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)' extend_from_end_at: type: integer format: int64 description: '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)' required: - user_id responses: '200': description: Success, no content returned externalDocs: url: https://canvas.instructure.com/doc/api/course_quiz_extensions.html components: securitySchemes: bearerAuth: type: http scheme: bearer description: 'Canvas OAuth2 access token sent as "Authorization: Bearer ". See https://canvas.instructure.com/doc/api/file.oauth.html' oauth2: type: oauth2 description: Canvas OAuth2. See https://canvas.instructure.com/doc/api/file.oauth.html and https://canvas.instructure.com/doc/api/file.oauth_endpoints.html flows: authorizationCode: authorizationUrl: https://canvas.instructure.com/login/oauth2/auth tokenUrl: https://canvas.instructure.com/login/oauth2/token refreshUrl: https://canvas.instructure.com/login/oauth2/token scopes: {} externalDocs: description: Canvas LMS REST API Documentation url: https://canvas.instructure.com/doc/api/ x-generated-from: https://canvas.instructure.com/doc/api/api-docs.json x-provenance: method: derived derived_by: API Evangelist enrichment pipeline (Swagger 1.2 -> OpenAPI 3.1 conversion) source: openapi/_original/swagger-1.2/*.json (144 verbatim first-party Swagger 1.2 documents) source_url: https://canvas.instructure.com/doc/api/api-docs.json fetched: '2026-09-05' http_status: 200