Skip to main content
POST
/
workflows
/
v1
/
edges
Create Edge
curl --request POST \
  --url https://api-qa.interactly.ai/workflows/v1/edges \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "logical_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "source_node_logical_id": "<string>",
  "destination_node_logical_id": "<string>",
  "workflow_id": "5eb7cf5a86d9755df3a6c593",
  "disabled": false,
  "type": "direct"
}
'
{
  "edge": {
    "team_id": "<string>",
    "created_by": "<string>",
    "updated_by": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "_id": "5eb7cf5a86d9755df3a6c593",
    "edge_config": {
      "logical_id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "source_node_logical_id": "<string>",
      "destination_node_logical_id": "<string>",
      "workflow_id": "<string>",
      "disabled": false,
      "type": "direct"
    }
  }
}

Authorizations

Authorization
string
header
required

Retrieve your API Key from Dashboard API Keys Section.

Body

application/json
logical_id
string | null

Unique identifier for the edge

name
string | null

Name of the edge

description
string | null

Description of the edge

source_node_logical_id
string | null

Logical ID of the source node for this edge

destination_node_logical_id
string | null

Logical ID of the target node for this edge

workflow_id
string | null

The ID of the workflow this edge belongs to

Required string length: 24
Example:

"5eb7cf5a86d9755df3a6c593"

disabled
boolean
default:false

If true, this edge will be disabled and will not be traversed. Useful for testing workflows without executing edge logic.

type
string
default:direct

Type of the edge. Expected to be always 'direct' for this base config

Allowed value: "direct"

Response

Successful Response

Response model for a single edge. Contains an EdgesModel object.

edge
EdgesModel · object
required

Single edge object