Skip to main content
PATCH
/
v1
/
projects
/
{projectId}
/
pathway
/
nodes
/
{nodeId}
Update Node
curl --request PATCH \
  --url https://api.pathors.com/v1/projects/{projectId}/pathway/nodes/{nodeId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "data.title": "<string>",
    "data.prompt": "<string>",
    "data.tools": [
      "<string>"
    ]
  },
  "position": {}
}
'

Request

PATCH https://api.pathors.com/v1/projects/{projectId}/pathway/nodes/{nodeId}
Only send the fields you want to update. Existing fields are preserved.

Path Parameters

projectId
string
required
The project ID
nodeId
string
required
The node ID

Headers

Authorization
string
required
Bearer token using your developer key

Body

data
object
Partial node data to merge. Only include fields you want to change.
position
object
Updated canvas position: { "x": number, "y": number }

Response

Returns the full updated node.

Example: Update prompt text

curl -X PATCH https://api.pathors.com/v1/projects/{projectId}/pathway/nodes/{nodeId} \
  -H "Authorization: Bearer dk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "prompt": "Updated: Help the user complete their booking and confirm details."
    }
  }'

Example: Update tool bindings

curl -X PATCH https://api.pathors.com/v1/projects/{projectId}/pathway/nodes/{nodeId} \
  -H "Authorization: Bearer dk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "data": {
      "tools": ["tool-uuid-1", "tool-uuid-2"]
    }
  }'