---
title: "Put Course Deck Bookmarks"
method: PUT
path: "/teacher/courses/{course_id}/deck-bookmarks"
tags: ["Teacher Course Bookmarks"]
---

# Put Course Deck Bookmarks

`PUT /teacher/courses/{course_id}/deck-bookmarks`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/teacher/courses/{course_id}/deck-bookmarks`
- Auth: OAuth 2 (password, token URL `api/login`)

Place the bookmark of one or several classes on one deck, all or
nothing (`position: null` = follow the course bookmark again), and answer
with both decks.

404: not a course of this teacher. 409: a class of a finished school year
(frozen). 422: a class listed twice or not on the course, or an item
that is not in the deck.

## Path parameters

- `course_id` string, required

## Request body

- PlaceDeckBookmarksRequest: Several classes of one deck at once (dragging several tabs, the undo of a reset). Validated and written as a whole.
  - `deck` 'flashcards' | 'quiz', required
  - `bookmarks` ClassDeckBookmarkPlacement[], required
    - `class_id` string, required
    - `position` ItemBookmarkPosition: Where a deck bookmark sits: before the first item (`nothing`), after the last (`all`), or right after `item_id` (`item`), inclusive.
      - `kind` 'nothing' | 'all' | 'item', required
      - `item_id` string, nullable

## Response `200`

Successful Response

- CourseDeckBookmarksResponse
  - `flashcards` DeckBookmarksResponse, required: One deck: `item_ids` in display order (flashcard ids, or knowledge quiz `question_id`s), and the bookmark of each class concerned in the assignment's class order.
    - `item_ids` string[], required
    - `bookmarks` ClassDeckBookmarkResponse[], required
      - `class_id` string, required
      - `follows_course` boolean, required
      - `position` ItemBookmarkPosition, required: Where a deck bookmark sits: before the first item (`nothing`), after the last (`all`), or right after `item_id` (`item`), inclusive.
        - `kind` 'nothing' | 'all' | 'item', required
        - `item_id` string, nullable
      - `is_past` boolean, required
  - `quiz` DeckBookmarksResponse, required: One deck: `item_ids` in display order (flashcard ids, or knowledge quiz `question_id`s), and the bookmark of each class concerned in the assignment's class order.
    - `item_ids` string[], required
    - `bookmarks` ClassDeckBookmarkResponse[], required
      - `class_id` string, required
      - `follows_course` boolean, required
      - `position` ItemBookmarkPosition, required: Where a deck bookmark sits: before the first item (`nothing`), after the last (`all`), or right after `item_id` (`item`), inclusive.
        - `kind` 'nothing' | 'all' | 'item', required
        - `item_id` string, nullable
      - `is_past` boolean, required

## Other responses

- `400`: Malformed identifier
- `404`: Resource not found
- `409`: Business rule violated
- `422`: The body names something not on this resource

## Changes

> 55 revisions in range; 1 not diffed.

- **2026-09-30** `518c1e6178a3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/teacher/courses/:course_id/deck-bookmarks/put.md)

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) - [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) - [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
