Skip to main content
Updates metadata or the draft graph for a workflow the API key user can edit. Updating the draft does not publish a new version. Send either metadata (including limits) or a graph update in one request. Do not mix them.

Base URL

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

Required scopes

This endpoint requires the WORKFLOW_WRITE_API scope (Workflow Write API) and editor access.

Parameters

To replace the draft graph, send both nodes and edges. To apply an incremental graph edit, send patch. Sending a redacted secret value from get keeps the stored secret. Send a new non-empty value to rotate a secret, or null to clear a secret-named field.

Example

Response format

Success response (200 OK)

workflow matches the object on Workflow API Overview.

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.