---
title: "Update Folder"
method: PATCH
path: "/workspaces/{workspace_id}/agent-folders/{folder_id}"
tags: ["agent-folders"]
---

# Update Folder

`PATCH /workspaces/{workspace_id}/agent-folders/{folder_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/agent-folders/{folder_id}`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Update a folder (rename).

## Path parameters

- `folder_id` string, uuid, required
- `workspace_id` string, uuid, required

## Request body

- AgentFolderUpdate
  - `name` string, nullable

## Response `200`

Successful Response

- AgentFolderRead
  - `id` string, uuid, required
  - `name` string, required
  - `path` string, required
  - `workspace_id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
