Skip to main content
PATCH
Update a prompt folder
Updates an existing prompt folder in your workspace. Only include the fields you want to change.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Required Scopes

This endpoint requires the PROMPT_API scope.
Private folders require creator access. Workspace-shared folders require workspace editor access or sharePrompts. Group-shared folders require group editor access or workspace editor access.

Parameters

Path Parameters

Request Body

Example

Response Format

Success Response (200 OK)

Error Handling

Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Path Parameters

folderId
string<uuid>
required

UUID of the prompt folder.

Body

application/json
name
string

Folder name.

Required string length: 2 - 50
sharedWithWorkspace
boolean

Share the folder with the workspace.

sharedWithGroupId
string<uuid> | null

Group UUID to share with, or null to disconnect the group.

Response

Prompt folder updated successfully

folder
object
required