---
title: "Rename Query Folder"
method: PATCH
path: "/data/projects/{projectId}/queries/folders/{folderId}/name"
tags: ["Data -- Query Folders"]
---

# Rename Query Folder

`PATCH /data/projects/{projectId}/queries/folders/{folderId}/name`

## Request

- Base URL: `https://partner.peaka.studio/api/v1`
- URL: `https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/folders/{folderId}/name`
- Auth: HTTP bearer

Renames a query folder. The folder's path segments are updated to reflect the new name.

## Path parameters

- `projectId` string, required
- `folderId` string, required

## Request body

- QueryFolderRenameRequest: Request body for renaming a query folder
  - `name` string, required: New name for the folder

## Response `200`

Folder renamed successfully

- QueryFolderItem: Represents a query folder
  - `id` string: Unique identifier of the folder (UUID)
  - `name` string: Display name of the folder
  - `path` string: Full path of the folder in the hierarchy
  - `parentId` string: ID of the parent folder, null if root-level
  - `createdAt` string: Timestamp when the folder was created (ISO 8601)

## Other responses

- `404`: Folder not found
- `409`: A folder with this name already exists at the same level

---

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