Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Canvas Steps

Get Graph

get

Retrieves the graph for a given flow version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
flow_versionstringRequired

The flow version identifier.

Responses
200

Successful response

No content

get/api/v1/flow-versions/{flow_version}/graph
GET /api/v1/flow-versions/{flow_version}/graph HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*

No content

Create Flow Version Graph Step

post

Creates a new step on the canvas for a specific flow version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
flow_versionstringRequired

The flow version identifier.

Responses
200

Successful response

No content

post/api/v1/flow-versions/{flow_version}/graph/steps
POST /api/v1/flow-versions/{flow_version}/graph/steps HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*

No content

Delete Flow Version Graph Steps

delete

Permanently deletes all steps from the canvas for a specific flow version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
flow_versionstringRequired

The flow version identifier.

Responses
200

Successful response

No content

delete/api/v1/flow-versions/{flow_version}/graph/steps
DELETE /api/v1/flow-versions/{flow_version}/graph/steps HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*

No content

Get Flow Version Graph Step

get

Retrieves the details of a specific canvas step for a specific flow version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
flow_versionstringRequired

The flow version identifier.

stepstringRequired

The step identifier.

Responses
200

Successful response

No content

get/api/v1/flow-versions/{flow_version}/graph/steps/{step}
GET /api/v1/flow-versions/{flow_version}/graph/steps/{step} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*

No content

Delete Flow Version Graph Step

delete

Permanently deletes a specific canvas step for a specific flow version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
flow_versionstringRequired

The flow version identifier.

stepstringRequired

The step identifier.

Responses
200

Successful response

No content

delete/api/v1/flow-versions/{flow_version}/graph/steps/{step}
DELETE /api/v1/flow-versions/{flow_version}/graph/steps/{step} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*

No content

Paste Steps

post

Pastes copied steps onto the canvas for a specific flow version.

Authorizations
AuthorizationstringRequired

API key passed in the Authorization header. Format: <api-key>

Path parameters
flow_versionstringRequired

The flow version identifier.

Body
source_flow_version_idintegerRequired
target_xnumberRequired
target_ynumberRequired
flow_version_idintegerOptional
Responses
200

Successful response

No content

post/api/v1/flow-versions/{flow_version}/graph/paste-steps
POST /api/v1/flow-versions/{flow_version}/graph/paste-steps HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 123

{
  "source_flow_version_id": 1,
  "steps": [
    {
      "id": 1,
      "relative_x": 1,
      "relative_y": 1
    }
  ],
  "target_x": 1,
  "target_y": 1,
  "flow_version_id": 1
}

No content

Last updated

Was this helpful?