Skip to content
Kumquat
Esc
↑↓navigate↵open⌘Jpreview

Duplicate Run

A graph of your own holding that run’s definition, opening on that run’s results.

Duplicating the graph while an instance is open answers with a different document — a run owns its definition. Nothing is re-paid: results are cached by fingerprint, and the copy is marked as spend somebody else covered.

With at or generation it is the version being read that is copied, so the copy opens on the results that were on screen rather than on whatever the run has since become.

POST/api/v1/runs/{run_id}/duplicate
Authorization
AuthorizationBearer token · headerrequired
or
AuthorizationOAuth2 access token · headerrequired
Path parameters
run_idstringrequired
Query parameters
atstring<date-time> | any
Copy the state the run held then, not what it holds now
generationinteger | any
That state as a file names it
Responses
200Successful Response
successboolean
default: true
dataGraphCopy | any
Show properties
Any of:
GraphCopy
graphNodeGraphrequired
Show properties
idstring
namestringrequired
descriptionstring
default: ""
definitionobject
ui_stateobject
forked_fromstring | any
Show properties
Any of:
string
string
any
any
templateboolean
default: false
owner_idstringrequired
created_atstring<date-time>
updated_atstring<date-time>
deleted_atstring<date-time> | any
Show properties
Any of:
string<date-time>
string<date-time>
any
any
run_idstring | any
Show properties
Any of:
string
string
any
any
any
any
messagestring | any
Show properties
Any of:
string
string
any
any
errorsstring[] | any
Show properties
Any of:
string[]
Array of string
string
any
any
422Validation Error
detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Request
curl -X POST "/api/v1/runs/string/duplicate" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "success": true,
  "data": {
    "graph": {
      "id": "string",
      "name": "string",
      "description": "",
      "definition": {},
      "ui_state": {},
      "forked_from": "string",
      "template": false,
      "owner_id": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "deleted_at": "2019-08-24T14:15:22Z"
    },
    "run_id": "string"
  },
  "message": "string",
  "errors": [
    "string"
  ]
}