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

# Update a folder

`PATCH /analytics/v1/folders/{id}`

Updates the specified folder. All fields are optional.
To reparent the folder, set `parentFolderId` to the target folder ID
(use "root" for the top level). If a sibling at the target has the same
name, the folder is auto-renamed.
To move reports or allocations into or out of a folder, update the item's
`folderId` field via the report or allocation PATCH endpoint.

## Path parameters

- `id` string, required

## Request body

- UpdateFolderRequest — Request body for updating a folder. All fields are optional; only fields the caller wants to change should be set.
  - `name` string — Folder name.
  - `description` string — Folder description.
  - `parentFolderId` string — Identifier of the new parent folder. Use "root" to move the folder to the top level. If a sibling at the new parent has the same name, the folder is auto-renamed (e.g. "Foo" → "Foo (1)").

## Response `200`

OK - Folder updated.

- Folder — A Cloud Analytics folder.
  - `id` string — Folder ID.
  - `name` string — Folder name.
  - `description` string — Folder description.
  - `parentFolderId` string — Identifier of the parent folder. Set to "root" if the folder is at the top level.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.
- `500` — Internal Server Error - Something went wrong with the DoiT API server.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
