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

Duplicate Graph

Take a copy of any graph, yours or not — the way to change one you do not own, and the only way to get a deleted one back into use.

The source’s newest successful run comes with it and run_id names it, so the copy opens on results rather than empty nodes — and that is the version worth working from, a graph’s own definition having stopped moving once the editing continued on its instances. Nothing is re-paid: an unchanged copy re-runs entirely from cache.

POST/api/v1/graphs/{graph_id}/duplicate
Authorization
AuthorizationBearer token · headerrequired
or
AuthorizationOAuth2 access token · headerrequired
Path parameters
graph_idstringrequired
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/graphs/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"
  ]
}