Workflows

Restore a workflow revision

Creates a new revision with the source of the named revision. Does NOT dedup against the current revision so the action is auditable in the revision history.

post/workflows/{workflow_id}/code/restore

Path parameters

workflow_idstring uuid required

workflow identifier

workflow identifier

Request body

revision_idstring required

Revision to restore.

Response

OK

no_opboolean required

True when the submitted source's sha256 matched the prior current revision; no new row was inserted, no pointer was changed.

revisioninteger required

Per-workflow monotonic revision number.

revision_idstring required

Workflow_revisions.id of the active revision after the save.

Changes