---
title: "Update a folder"
method: PATCH
path: "/v1/folders/{folder_id}"
tags: ["Folders"]
---

# Update a folder

`PATCH /v1/folders/{folder_id}`

## Request

- Base URL: `https://api.capacity.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.capacity.com/v1/folders/{folder_id}`
- Auth: one of:
  - API key in header `x-capacity-id`
  - HTTP bearer

Update a folder

## Path parameters

- `folder_id` string, required

## Request body

- object
  - `name` string: The new name of the folder

## Response `200`

The updated folder

- object
  - `body` object: Json body data in the request
  - `parameters` object: Query parameters in the request
  - `result` FolderSchema
    - `id` string: ID of the folder
    - `name` string: Name of the folder

## Other responses

- `400`: The request contains malformed data or violates data integrity
- `404`: The requested resource could not be found

---

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