---
title: "Rename a deck or change the note/project it belongs to"
method: PATCH
path: "/revise/decks/{id}"
tags: ["revise"]
---

# Rename a deck or change the note/project it belongs to

`PATCH /revise/decks/{id}`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/revise/decks/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- UpdateReviseDeckDto
  - `name` string
  - `note_id` string, uuid, nullable: null unlinks the note
  - `project_id` string, uuid, nullable: null unlinks the project

## Response `200`

- ReviseDeckResponseDto
  - `id` string, required
  - `name` string, required
  - `note_id` string, nullable, required
  - `project_id` string, nullable, required
  - `card_count` number, required: Live cards in the deck
  - `due_count` number, required: Live cards due for review now, plus imported cards never reviewed
  - `created_at` string, required
  - `updated_at` string, required
  - `deleted_at` string, nullable, required

---

[API](https://skmtc.dev/focusbear/apis/focusbear-api.md) - [All operations](https://skmtc.dev/focusbear/apis/focusbear-api/llms.txt) - [OpenAPI document](https://skmtc.dev/focusbear/apis/focusbear-api/revisions/3a83a3b9a811?raw)
