Skip to main content
PATCH
Update a workflow
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.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Body

application/json
workflowId
string<uuid>
required
name
string
Maximum string length: 60
description
string
Maximum string length: 500
status
enum<string>
Available options:
ACTIVE,
INACTIVE
timezone
string

Valid IANA timezone.

nodes
object[]
edges
object[]
patch
object

Incremental graph operations. Cannot be sent with nodes and edges or with metadata.

limits
object

Execution caps. Omitted fields stay unchanged. Send null on a field to clear it.

Response

Workflow updated successfully