Skip to main content
PATCH
Update a prompt
Aktualisiert einen bestehenden Prompt in deinem Workspace. Gib nur die Felder an, die du ändern möchtest.

Basis-URL

Dedicated DeploymentsErsetze api.langdock.com durch <your-deployment-url>/api/public in allen Anfragen.

Erforderliche Scopes

Dieser Endpoint erfordert den PROMPT_API Scope.
Erfordert Zugriff als Ersteller, Workspace-Editor oder Gruppen-Editor des Prompt-Ordners.

Parameter

Pfad-Parameter

Request Body

Beispiel

Antwortformat

Erfolgsantwort (200 OK)

Fehlerbehandlung

Langdock blockiert bewusst Browser-basierte Anfragen, um deinen API-Schlüssel zu schützen und die Sicherheit deiner Anwendungen zu gewährleisten. Weitere Informationen findest du in unserem Guide zu Best Practices für API-Schlüssel.

Autorisierungen

Authorization
string
header
erforderlich

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Pfadparameter

promptId
string<uuid>
erforderlich

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.

Antwort

Prompt updated successfully

prompt
object
erforderlich