Ana içeriğe geç

Freeze the draft and make it the one customers run

POST 

/api/flows/:flow/publish

SAVING IS NOT PUBLISHING.

flows.definition is the DRAFT — what the editor reads and writes. Publishing freezes it into an immutable version and repoints the flow at it.

Conversations ALREADY inside the flow are pinned to the version they started on and are untouched. Before versioning, deleting a node and saving stranded every conversation sitting on it: the visitor pressed the button, nothing happened, no error, forever — and nobody was told.

It validates again even though saving did. A draft can predate a validation rule, or come back from a rollback to a version written before one existed, and publishing is the moment the graph becomes somebody else's problem.

Request​

Responses​

The flow, now pointing at its new version.