Skip to main content
PATCH
Update a prompt
Updates an existing prompt 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.
Requires creator access, workspace editor access, or group editor access on the prompt’s folder.

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

promptId
string<uuid>
required

UUID of the prompt.

Body

application/json
title
string

Prompt title.

Required string length: 2 - 100
prompt
string

Prompt content.

Required string length: 2 - 120000
promptFolderId
string<uuid> | null

Folder UUID to assign, or null to remove the folder.

sharedWithWorkspace
boolean

Share the prompt with the workspace.

Response

Prompt updated successfully

prompt
object
required