v1
latestOpenAPI 3.1.02026-08-06284092.1 KBPublish a draft (new workflow or edits to a live one)
Publish the caller's draft.
For a brand-new-workflow draft this is the "Save workflow" action: full validation (at least one step, at least one vision agent step, every agent and its parameters valid, pass criteria within range), org name uniqueness, and the plan's workflow cap (the only place a new draft is counted). The row flips from draft to active and normal versioning begins.
For an edit draft (staging changes to an existing live workflow) the draft's steps are applied to the parent as a new snapshot version, its metadata and reference images overwrite the parent's, and the draft is discarded. No cap is consumed (the parent already counts). If the parent has been published again since the draft branched, this returns 409 draft_base_outdated so the author can overwrite (retry with force=true) or discard, rather than silently dropping the newer version. Either way a validation failure leaves the draft intact to fix and retry.
Path parameters
Query parameters
Publish an edit draft even though its workflow has been published by someone else since the draft branched, overwriting their version.
Publish an edit draft even though its workflow has been published by someone else since the draft branched, overwriting their version.
Response
Successful Response
Example response
{
"steps": [
{
"name": "Overview shot",
"workflow_note": "Stand back and capture the whole subject in frame.",
"agent_id": "object-detection-v1"
}
]
}