Save a new workflow draft
Persist an in-progress workflow as a resumable draft.
A draft is a real workflow row in draft status: it is private to its author, never appears in the normal workflow list, never counts against the plan's workflow cap, and cannot be run, cloned, promoted, or shared. Validation is deliberately loose so a half-finished workflow (missing steps, an unconfigured agent, no name) still saves. There is no capacity gate here on purpose. The cap is enforced only when the draft is published. No WORKFLOW_CREATED audit is written for a draft; that is emitted at publish time when the workflow becomes real.
Request body
Example request
{
"steps": [
{
"agent_id": "object-detection-v1"
}
]
}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"
}
]
}Changes
Changed in 2 of the 3 revisions of this API.6
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the required property
to the response with the statusresponse-required-property-added
- ○