v12

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-014994227.2 KB
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

$schemastring uri

A URL to the JSON Schema for this object.

revision_idstring required

Revision to restore.

Example request

{
  "$schema": "/api/v1/WorkflowRestoreRevisionRequest.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

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.

Example response

{
  "$schema": "/api/v1/WorkflowSaveCodeResponse.json"
}