---
title: "Update workspace folder"
method: PATCH
path: "/api/workspace/folders/{folder_id}"
tags: ["workspace"]
---

# Update workspace folder

`PATCH /api/workspace/folders/{folder_id}`

Rename a folder, change its icon, and/or move it.

Sending ``parent_id: null`` moves the folder to the workspace root;
leaving the field out keeps it where it is. Move and rename are applied
together or not at all, and the new name is checked for a clash against
the destination.

## Path parameters

- `folder_id` string, required

## Request body

- WorkspaceFolderUpdateRequest
  - `name` string, nullable
  - `icon` string, nullable
  - `parent_id` string, nullable

## Response `200`

Successful Response

- WorkspaceFolder — Pydantic model for UserWorkspaceFolder, safe for RPC transport.
  - `id` string, required
  - `workspace_id` string, required
  - `name` string, required
  - `icon` string, nullable
  - `parent_id` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `file_count` integer

## Other responses

- `400` — A folder cannot be moved into its own subtree
- `401` — Authentication required
- `404` — Folder or destination not found
- `409` — A folder with this name already exists
- `422` — Validation Error

## Changes

- **2026-09-23** `7c34110a3072` — 3 info
  - added the new optional request property `parent_id`
  - added the non-success response with the status `400`
  - added the optional property `parent_id` to the response with the `200` status
- **2026-07-01** `8b9989912718` — 1 info
  - endpoint added
- **2026-04-30** `8c84efcb3afb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/workspace/folders/:folder_id/patch.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/revisions/b84a51b99815?raw)
