restore_workflow_version
Roll back a workflow's draft to a prior version using the version UUID. The current draft is automatically snapshotted, enabling future undo. Only the draft is affected; the live version remains unchanged until approved.
Instructions
Roll a workflow's DRAFT back to an earlier version. Takes the versionId (a UUID from list_workflow_versions), NOT the checkpoint number. The current draft is snapshotted first, so this is itself undoable. It changes only the draft — what is live stays live until a human approves a new publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The workflow's id. | |
| versionId | Yes | The version row's UUID. | |
| expectedVersion | Yes | The draft version you last read — 409 if stale. |