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

# Update workspace folder

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

## Path parameters

- `folder_id` string, required

## Request body

- WorkspaceFolderUpdateRequest
  - `name` string, nullable
  - `icon` 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
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `file_count` integer

## Other responses

- `401` — Authentication required
- `404` — Folder not found
- `409` — A folder with this name already exists
- `422` — Validation Error

## Changes

- **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-service-production.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/revisions/5dc375899754/schema)
