Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
edges
Create edge
curl --request POST \
  --url https://api.example.com/v1/projects/{projectId}/edges \
  --header 'Content-Type: application/json' \
  --data '
{
  "sourceNodeId": "<string>",
  "targetNodeId": "<string>",
  "sourceCardId": "<string>",
  "targetCardId": "<string>",
  "sourceHandle": "<string>",
  "targetHandle": "<string>",
  "edgeType": "<string>"
}
'
projectId
string
required
Project UUID.
sourceNodeId
string
required
Source node UUID.
targetNodeId
string
required
Target node UUID.
sourceCardId
string
Optional card ID within the source node.
targetCardId
string
Optional card ID within the target node.
sourceHandle
string
required
Attachment point on the source node. One of top, bottom, left, right.
targetHandle
string
required
Attachment point on the target node. One of top, bottom, left, right.
edgeType
string
Custom edge type label.
curl -X POST https://api.getkommit.ai/v1/projects/a1b2c3d4-e5f6-7890-abcd-ef1234567890/edges \
  -H "Authorization: Bearer km_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceNodeId": "n1a2b3c4-d5e6-7890-abcd-ef1234567890",
    "targetNodeId": "n2b3c4d5-e6f7-8901-bcde-f23456789012",
    "sourceHandle": "bottom",
    "targetHandle": "top",
    "edgeType": "dependency"
  }'