> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a folder

> Rename a folder or change its description with the Python SDK.

`client.folders.update_folder()` renames a [folder](https://infisical.com/docs/documentation/platform/folder.md) or changes its description.

> [!NOTE]
>
> `update_folder` requires `infisicalsdk` version 1.0.17 or newer.

## Parameters

**folder\_id** `str` *required*

The ID of the folder. To find the ID of a folder that you know by name, call [`list_folders`](https://infisical.com/docs/sdks/languages/python/folders/list-folders).

**name** `str` *required*

The new name of the folder. To keep the current name, pass it again.

**project\_id** `str` *required*

The ID of the project.

**environment\_slug** `str` *required*

The slug of the environment that the folder is in.

**path** `str` (default: /)

The path of the folder's parent folder.

**description** `str`

A new description of the folder. If you leave it out, the folder keeps its description, so you can't use this method to remove a description.

## Returns

**folder** `UpdateFolderResponseItem`

The updated folder, with its `id`, `name`, `description`, and `path`.

```python Rename theme={"dark"}
folder = client.folders.update_folder(
    folder_id="<folder-id>",
    name="backend-api",
    project_id="<project-id>",
    environment_slug="dev",
)
```

```python Change the description theme={"dark"}
folder = client.folders.update_folder(
    folder_id="<folder-id>",
    name="backend",
    project_id="<project-id>",
    environment_slug="dev",
    description="Secrets for the backend service",
)
```

```json Response theme={"dark"}
{
  "id": "3a1f6c2e-9b4d-4e7a-8c5f-2d1e0b9a8c7f",
  "name": "backend-api",
  "description": "Secrets for the backend service",
  "path": "/backend-api",
  "envId": "c4e2a1b9-7d3f-4a6e-9b8c-5f0e1d2c3b4a",
  "parentId": "8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
  "version": 2,
  "createdAt": "2026-11-02T09:10:05.220Z",
  "updatedAt": "2026-12-02T10:52:40.118Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.