Workflow Definitions API
POST/api/workflow-definitions/{workflowId}/{version}/publish
Product availabilityAlgaPSA

Publish a workflow version

Publishes the draft as an active version (auto-increments when the requested version is below the next expected). An optional definition in the body overrides the stored draft.

RBAC · workflow

Path parameters

workflowIdstring <uuid>Required
versionstringRequired
Draft version number (coerced to a positive integer).

Request body

Content type: application/json · schema WorkflowPublishBody

definitionobject
Workflow definition DSL document (nodes, edges, triggers, payload schema, etc.).

Response body

Success response 200 · schema UnversionedV1Success

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

200
Version published.
400
Invalid request.
401
API key missing/invalid.
403
Caller lacks the required permission.
404
Workflow/version not found.
500
Unexpected error.