Replace Workflow Draft
Replace the workflow’s draft with the supplied document.
Validates the definition, then rewrites the action graph, layout,
schedules, and case trigger in one transaction. Omit schedules from
the document to leave the workflow’s schedules untouched (they can be
managed independently via /schedules). Publishing is separate: call
POST /workflows/{id}/commit afterwards to create a new version.
Authorizations
Body
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.