Skip to main content
PUT
Error

Authorizations

fastapiusersauth
string
cookie
required

Path Parameters

workspace_id
string<uuid>
required
workflow_id
required
Pattern: wf_[0-9a-zA-Z]+

Body

application/json

Wholesale replacement of a workflow draft.

document is the full desired draft state (metadata, definition, layout, schedules, case trigger). schedules is optional: when omitted, the workflow's existing schedules are left untouched so they can be owned by the standalone /schedules resource; when present, they are replaced. Other omitted sections fall back to their defaults and are treated as changed. When base_revision is set, the update is rejected with 409 if the current draft revision differs.

document
WorkflowEditDocument · object
required
base_revision
string | null

Response

Successful Response

Canonical editable draft document plus its content-hash revision.

workflow_id
string
required
Pattern: wf_[0-9a-zA-Z]+
draft_revision
string
required
document
WorkflowEditDocument · object
required