---
title: "PATCH /api/v2/folders/{folderId}"
method: PATCH
path: "/api/v2/folders/{folderId}"
tags: ["Folders"]
---

# PATCH /api/v2/folders/{folderId}

`PATCH /api/v2/folders/{folderId}`

Update folder

## Path parameters

- `folderId` string, required

## Request body

- object
  - `projectId` string, required — The ID of the project where the folder is located.
  - `environment` string, required — The slug of the environment where the folder is located.
  - `name` string, required — The new name of the folder.
  - `path` string — The path of the folder to update.
  - `description` string, nullable — An optional description label for the folder.

## Response `200`

Default Response

- object
  - `folder` object, required
    - `id` string, uuid, required
    - `name` string, required
    - `version` number, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `envId` string, uuid, required
    - `parentId` string, uuid, nullable
    - `isReserved` boolean, nullable
    - `description` string, nullable
    - `lastSecretModified` string, date-time, nullable
    - `path` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/f10a4f8c1d41/schema)
