---
search:
  tags:
    - Operations
    - PATCH
seo:
  description: >-
    Rename or recolor a folder. Reference for the PATCH /v1/folders/{folderId}
    endpoint in the Teak API.
sidebar:
  label: Rename or recolor a folder
  badge: PATCH
title: Rename or recolor a folder
type: openapi-operation
---
`PATCH /v1/folders/{folderId}`

**Request body** (`application/json`, required)

- `name` (string) — 1 to 300 characters, unique per account ignoring case.
- `color` (string | null) — A palette color, or null to clear it.

Request body example:

```json
{
  "name": "string",
  "color": "gray"
}
```

**Responses**

- `200` — Folder updated
- `404` — Folder not found
- `409` — A folder with this name exists

Response example, 200:

```json
{
  "id": "string",
  "name": "string",
  "color": "gray",
  "kind": "manual",
  "cardCount": 0,
  "createdAt": 0,
  "updatedAt": 0
}
```
