> 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/assignment_presets.md).

# Assignment Presets

Manage assignment presets for courses and accounts. Presets store a reusable set of assignment settings (grading type, visibility flags, tool-specific configuration) that can be applied to one or more assignments.

## [List assignment presets](#method.assignment_presets.index) <a href="#method.assignment_presets.index" id="method.assignment_presets.index"></a>

[AssignmentPresetsController#index](https://github.com/instructure/canvas-lms/blob/master/app/controllers/assignment_presets_controller.rb)

#### `GET /api/v1/courses/:course_id/assignment_presets`

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

#### `GET /api/v1/accounts/:account_id/assignment_presets`

**Scope:** `url:GET|/api/v1/accounts/:account_id/assignment_presets`

Returns the list of assignment presets accessible from the current context. This always includes account-level presets from the context's account chain. For a course context, it also includes the course's own presets.

## [Get an assignment preset](#method.assignment_presets.show) <a href="#method.assignment_presets.show" id="method.assignment_presets.show"></a>

[AssignmentPresetsController#show](https://github.com/instructure/canvas-lms/blob/master/app/controllers/assignment_presets_controller.rb)

#### `GET /api/v1/courses/:course_id/assignment_presets/:id`

**Scope:** `url:GET|/api/v1/courses/:course_id/assignment_presets/:id`

#### `GET /api/v1/accounts/:account_id/assignment_presets/:id`

**Scope:** `url:GET|/api/v1/accounts/:account_id/assignment_presets/:id`

Returns a single assignment preset.

## [Create an assignment preset](#method.assignment_presets.create) <a href="#method.assignment_presets.create" id="method.assignment_presets.create"></a>

[AssignmentPresetsController#create](https://github.com/instructure/canvas-lms/blob/master/app/controllers/assignment_presets_controller.rb)

#### `POST /api/v1/courses/:course_id/assignment_presets`

**Scope:** `url:POST|/api/v1/courses/:course_id/assignment_presets`

#### `POST /api/v1/accounts/:account_id/assignment_presets`

**Scope:** `url:POST|/api/v1/accounts/:account_id/assignment_presets`

Create a new assignment preset in the given context.

#### Request Parameters:

| Parameter               | Type              | Description                                                       |
| ----------------------- | ----------------- | ----------------------------------------------------------------- |
| `name`                  | Required `string` | The name of the preset.                                           |
| `grading_type`          | `string`          | How grades display (points, percentage, etc.) Defaults to points. |
| `omit_from_final_grade` | `boolean`         | Exclude from final grade calculation.                             |
| `hide_in_gradebook`     | `boolean`         | Hide the assignment column in the gradebook.                      |
| `post_to_sis`           | `boolean`         | Push grades to the Student Information System.                    |
| `anonymous_grading`     | `boolean`         | Anonymize student identity during grading.                        |
| `settings`              | `Object`          | Tool-specific settings.                                           |

## [Update an assignment preset](#method.assignment_presets.update) <a href="#method.assignment_presets.update" id="method.assignment_presets.update"></a>

[AssignmentPresetsController#update](https://github.com/instructure/canvas-lms/blob/master/app/controllers/assignment_presets_controller.rb)

#### `PUT /api/v1/courses/:course_id/assignment_presets/:id`

**Scope:** `url:PUT|/api/v1/courses/:course_id/assignment_presets/:id`

#### `PUT /api/v1/accounts/:account_id/assignment_presets/:id`

**Scope:** `url:PUT|/api/v1/accounts/:account_id/assignment_presets/:id`

Update an existing assignment preset.

#### Request Parameters:

| Parameter               | Type      | Description             |
| ----------------------- | --------- | ----------------------- |
| `name`                  | `string`  | The name of the preset. |
| `grading_type`          | `string`  | How grades display.     |
| `omit_from_final_grade` | `boolean` | no description          |
| `hide_in_gradebook`     | `boolean` | no description          |
| `post_to_sis`           | `boolean` | no description          |
| `anonymous_grading`     | `boolean` | no description          |
| `settings`              | `Object`  | Tool-specific settings. |

## [Delete an assignment preset](#method.assignment_presets.destroy) <a href="#method.assignment_presets.destroy" id="method.assignment_presets.destroy"></a>

[AssignmentPresetsController#destroy](https://github.com/instructure/canvas-lms/blob/master/app/controllers/assignment_presets_controller.rb)

#### `DELETE /api/v1/courses/:course_id/assignment_presets/:id`

**Scope:** `url:DELETE|/api/v1/courses/:course_id/assignment_presets/:id`

#### `DELETE /api/v1/accounts/:account_id/assignment_presets/:id`

**Scope:** `url:DELETE|/api/v1/accounts/:account_id/assignment_presets/:id`

Soft-deletes an assignment preset.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
