---
title: "PATCH /api/v2/folders/batch"
method: PATCH
path: "/api/v2/folders/batch"
tags: ["Folders"]
---

# PATCH /api/v2/folders/batch

`PATCH /api/v2/folders/batch`

Update folders by batch

## Request body

- object
  - `projectId` string, required — The ID of the project where the folder is located.
  - `folders` object[], required
    - `id` string, required — The ID of the folder to update.
    - `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
  - `folders` 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

## 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/885aef3e6c11/schema)
