---
title: "Update a prompt folder"
method: PATCH
path: "/prompts/v1/folders/{folderId}"
tags: ["Prompts"]
---

# Update a prompt folder

`PATCH /prompts/v1/folders/{folderId}`

## Request

- Base URL: `https://api.langdock.com`
- URL: `https://api.langdock.com/prompts/v1/folders/{folderId}`
- Auth: HTTP bearer

Updates an existing prompt folder in your workspace.

## Path parameters

- `folderId` string, uuid, required

## Request body

- UpdatePromptFolderRequest
  - `name` string: Folder name.
  - `sharedWithWorkspace` boolean: Share the folder with the workspace.
  - `sharedWithGroupId` string, uuid, nullable: Group UUID to share with, or null to disconnect the group.

## Response `200`

Prompt folder updated successfully

- PromptFolderResponse
  - `folder` PromptFolder, required
    - `id` string, uuid, required: Unique identifier for the prompt folder.
    - `name` string, required: Folder name.
    - `createdBy` string, uuid, required: User ID of the folder creator.
    - `sharedWithWorkspace` boolean, required: Whether the folder is shared with the workspace.
    - `sharedWithGroupId` string, uuid, nullable: Group ID the folder is shared with.
    - `createdAt` string, date-time, required: ISO 8601 timestamp for folder creation.
    - `updatedAt` string, date-time, required: ISO 8601 timestamp for the latest folder update.

## Other responses

- `400`: Invalid request body
- `401`: Invalid or missing API key
- `403`: Missing required scope or manage access
- `404`: Prompt folder or group not found
- `429`: Rate limit exceeded
- `500`: Internal server error

## Changes

- **2026-11-03** `c62bf90b4013`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langdock/apis/langdock-api/changes/prompts/v1/folders/:folderId/patch.md)

---

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