Skip to main content
POST
/
v1
/
workflows
/
blocks
/
versions
/
{block_version_id}
/
restore
block = client.workflows.blocks.create_version_restore("bver_abc123")
{
  "id": "<string>",
  "workflow_id": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "label": "",
  "position_x": 0,
  "position_y": 0,
  "width": 123,
  "height": 123,
  "config": {},
  "parent_id": "<string>",
  "declarative_path": "<string>",
  "declarative_source_block_id": "<string>",
  "resolved_schemas": {}
}

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 block version into the workflow’s current draft. If the logical block already exists in the current draft, its snapshot fields are overwritten. If it does not exist, it is recreated.
block = client.workflows.blocks.create_version_restore("bver_abc123")

Authorizations

Api-Key
string
header
required

Path Parameters

block_version_id
string
required

Response

Successful Response

Public live workflow block object.

id
string
required
workflow_id
string
required

Foreign key to workflow

type
enum<string>
required

Block type (extract, parse, classifier, etc.)

Available options:
start_document,
start_json,
note,
parse,
edit,
extract,
split,
classifier,
conditional,
api_call,
function,
while_loop,
for_each,
merge_dicts,
while_loop_sentinel_start,
while_loop_sentinel_end,
for_each_sentinel_start,
for_each_sentinel_end
updated_at
string<date-time>
required
label
string
default:""

Display label for the block

position_x
number
default:0

X position on canvas

position_y
number
default:0

Y position on canvas

width
number | null

Block width for resizable blocks

height
number | null

Block height for resizable blocks

config
Config · object

Block-specific configuration

parent_id
string | null

ID of parent container (while_loop, for_each)

declarative_path
string | null

Canonical declarative block path used to reconcile imported specs.

declarative_source_block_id
string | null

Authored declarative block id before import-time id regeneration.

resolved_schemas
Resolved Schemas · object

Schemas resolved for this block from the workflow graph.