---
title: "Update Folder"
method: PATCH
path: "/api/v1/folders/{folder_id}"
tags: ["authed"]
---

# Update Folder

`PATCH /api/v1/folders/{folder_id}`

## Request

- Base URL: `https://api.teaflask.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.teaflask.com/api/v1/folders/{folder_id}`
- Auth: none declared

Rename a folder or change its icon; placement is move_folder's job.

## Path parameters

- `folder_id` string, uuid, required

## Request body

- UpdateFolderRequest
  - `name` string, required
  - `icon` string, nullable, required

## Response `200`

Successful Response

- FolderResponse: One folder in the organization's single-parent folder tree.
  - `id` string, uuid, required: The folder's id.
  - `organization_id` string, uuid, required: The organization the folder belongs to.
  - `parent_id` string, uuid, nullable, required: The folder it sits inside; null for a top-level folder.
  - `position` integer, required: Its place among the folders that share its parent, from 0.
  - `name` string, required: The folder's name.
  - `icon` string, nullable, required: The folder's icon; null when it has none.
  - `created_at` string, date-time, required: When the folder was created.
  - `updated_at` string, date-time, required: When the folder last changed.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `422`: Validation error
- `500`: Internal server error

---

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