Skip to main content
POST
/
v1
/
workflows
/
versions
/
{workflow_version_id}
/
restore
workflow = client.workflows.create_version_restore("ver_abc123", workflow_id="wrk_abc123")
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "Untitled Workflow",
  "description": "",
  "project_id": "<string>",
  "published": {
    "version_id": "<string>",
    "published_at": "2023-11-07T05:31:56Z",
    "description": ""
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.retab.com/llms.txt

Use this file to discover all available pages before exploring further.

Restore an immutable workflow graph version into the workflow’s current draft. This creates a fresh draft graph from the selected version. The immutable version row is not modified.
workflow = client.workflows.create_version_restore("ver_abc123", workflow_id="wrk_abc123")

Authorizations

Api-Key
string
header
required

Path Parameters

workflow_version_id
string
required

Query Parameters

workflow_id
string
required

Workflow to restore into a new draft

Response

Successful Response

A workflow and its current configuration.

id
string
required

Unique ID for this workflow

created_at
string<date-time>
required
updated_at
string<date-time>
required
name
string
default:Untitled Workflow

The name of the workflow

description
string
default:""

Description of the workflow

project_id
string | null

Project that owns this workflow. Null means the organization's shared workflows project.

published
WorkflowPublished · object

Published workflow metadata when a published version exists