Skip to main content
POST
Restore a version of a shape
Its code was checked when it was saved; it applies to runs accepted from now on.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

a shape ID: shp_ and 32 lowercase hex digits

Example:

"shp_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"

Body

application/json
version
integer
required

The version to make current again, from the shape's history

Required range: x >= 1

Response

The shape, at its new version

id
string
required

shp_ and 32 lowercase hex digits

tool_id
string
required
name
string
required
request
string
required

The words the current version was made from

version
number
required
code
string
required

The function Pomerado wrote, read-only: a small JavaScript arrow function of the result

output_schema
object
required

The form the shape's results take, as JSON Schema

passes_new_fields
boolean
required

Whether fields the tool adds later come through the shape too, except one the shape replaces with its own field of the same name, which new_fields lists

new_fields
string[]
required

Fields the tool returns now that the shape leaves out

created_at
string
required
updated_at
string
required
notice
string

Present when new_fields isn't empty: says so, and how to add them