> For the complete documentation index, see [llms.txt](https://developerdocs.instructure.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developerdocs.instructure.com/services/canvas/resources/quiz_assignment_overrides.md).

# Quiz Assignment Overrides

#### A QuizAssignmentOverrideSet object looks like: <a href="#quizassignmentoverrideset" id="quizassignmentoverrideset"></a>

```js
// Set of assignment-overridden dates for a quiz.
{
  // ID of the quiz those dates are for.
  "quiz_id": "1",
  // An array of quiz assignment overrides. For students, this array will always
  // contain a single item which is the set of dates that apply to that student.
  // For teachers and staff, it may contain more.
  "due_dates": null,
  // An array of all assignment overrides active for the quiz. This is visible
  // only to teachers and staff.
  "all_dates": null
}
```

#### A QuizAssignmentOverrideSetContainer object looks like: <a href="#quizassignmentoverridesetcontainer" id="quizassignmentoverridesetcontainer"></a>

```js
// Container for set of assignment-overridden dates for a quiz.
{
  // The QuizAssignmentOverrideSet
  "quiz_assignment_overrides": null
}
```

#### A QuizAssignmentOverride object looks like: <a href="#quizassignmentoverride" id="quizassignmentoverride"></a>

```js
// Set of assignment-overridden dates for a quiz.
{
  // ID of the assignment override, unless this is the base construct, in which
  // case the 'id' field is omitted.
  "id": 1,
  // The date after which any quiz submission is considered late.
  "due_at": "2014-02-21T06:59:59Z",
  // Date when the quiz becomes available for taking.
  "unlock_at": null,
  // When the quiz will stop being available for taking. A value of null means it
  // can always be taken.
  "lock_at": "2014-02-21T06:59:59Z",
  // Title of the section this assignment override is for, if any.
  "title": "Project X",
  // If this property is present, it means that dates in this structure are not
  // based on an assignment override, but are instead for all students.
  "base": true
}
```

## [Retrieve assignment-overridden dates for Classic Quizzes](#method.quizzes/quiz_assignment_overrides.index) <a href="#method.quizzes-quiz_assignment_overrides.index" id="method.quizzes-quiz_assignment_overrides.index"></a>

[Quizzes::QuizAssignmentOverridesController#index](https://github.com/instructure/canvas-lms/blob/master/app/controllers/quizzes/quiz_assignment_overrides_controller.rb)

#### `GET /api/v1/courses/:course_id/quizzes/assignment_overrides`

**Scope:** `url:GET|/api/v1/courses/:course_id/quizzes/assignment_overrides`

Retrieve the actual due-at, unlock-at, and available-at dates for quizzes based on the assignment overrides active for the current API user.

#### Request Parameters:

| Parameter                                 | Type      | Description                                                                                                             |
| ----------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------- |
| `quiz_assignment_overrides[][quiz_ids][]` | `integer` | <p>An array of quiz IDs. If omitted, overrides for all quizzes available to<br>the operating user will be returned.</p> |

#### Example Response:

```js
{
   "quiz_assignment_overrides": [{
     "quiz_id": "1",
     "due_dates": [QuizAssignmentOverride],
     "all_dates": [QuizAssignmentOverride]
   },{
     "quiz_id": "2",
     "due_dates": [QuizAssignmentOverride],
     "all_dates": [QuizAssignmentOverride]
   }]
}
```

Returns a [QuizAssignmentOverrideSetContainer](#quizassignmentoverridesetcontainer) object.

## [Retrieve assignment-overridden dates for New Quizzes](#method.quizzes/quiz_assignment_overrides.new_quizzes) <a href="#method.quizzes-quiz_assignment_overrides.new_quizzes" id="method.quizzes-quiz_assignment_overrides.new_quizzes"></a>

[Quizzes::QuizAssignmentOverridesController#new\_quizzes](https://github.com/instructure/canvas-lms/blob/master/app/controllers/quizzes/quiz_assignment_overrides_controller.rb)

#### `GET /api/v1/courses/:course_id/new_quizzes/assignment_overrides`

**Scope:** `url:GET|/api/v1/courses/:course_id/new_quizzes/assignment_overrides`

Retrieve the actual due-at, unlock-at, and available-at dates for quizzes based on the assignment overrides active for the current API user.

#### Request Parameters:

| Parameter                                 | Type      | Description                                                                                                             |
| ----------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------- |
| `quiz_assignment_overrides[][quiz_ids][]` | `integer` | <p>An array of quiz IDs. If omitted, overrides for all quizzes available to<br>the operating user will be returned.</p> |

#### Example Response:

```js
{
   "quiz_assignment_overrides": [{
     "quiz_id": "1",
     "due_dates": [QuizAssignmentOverride],
     "all_dates": [QuizAssignmentOverride]
   },{
     "quiz_id": "2",
     "due_dates": [QuizAssignmentOverride],
     "all_dates": [QuizAssignmentOverride]
   }]
}
```

Returns a [QuizAssignmentOverrideSetContainer](#quizassignmentoverridesetcontainer) object.

***

This documentation is generated directly from the Canvas LMS source code, available [on Github](https://github.com/instructure/canvas-lms).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developerdocs.instructure.com/services/canvas/resources/quiz_assignment_overrides.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
