Skip to main content
PATCH
/
v1
/
projects
/
{projectId}
/
pathway
/
edges
/
{edgeId}
Update Edge
curl --request PATCH \
  --url https://api.pathors.com/v1/projects/{projectId}/pathway/edges/{edgeId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source": "<string>",
  "target": "<string>",
  "condition": "<string>"
}
'

Request

PATCH https://api.pathors.com/v1/projects/{projectId}/pathway/edges/{edgeId}

Path Parameters

projectId
string
required
The project ID
edgeId
string
required
The edge ID

Headers

Authorization
string
required
Bearer token using your developer key

Body

All fields are optional. Only include the fields you want to update.
source
string
New source node ID
target
string
New target node ID
condition
string
Updated transition condition

Response

Returns the full updated edge. Returns 400 if the new source or target node does not exist.

Example

curl -X PATCH https://api.pathors.com/v1/projects/{projectId}/pathway/edges/{edgeId} \
  -H "Authorization: Bearer dk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "condition": "User confirms booking and provides payment"
  }'