Update Node
Update an existing node.
Endpoint: PUT /api/v1/integration/nodes/{id}
Authentication: Required (Bearer token)
Required Headers:
Authorization: Bearer <access_token>
X-Target-Server: integration
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (UUID) | Yes | Node ID |
Request Body
All fields are optional:
{
"name": "Updated Node Name",
"type": 2,
"parent_id": "550e8400-e29b-41d4-a716-446655440002"
}
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Node name (1-255 characters) |
type | integer | No | Node type: 1=Apex, 2=Account, 3=SubAccount |
parent_id | string (UUID) | No | New parent node ID |
Response
Status: 200 OK
Returns the updated node object.
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"parent_id": "550e8400-e29b-41d4-a716-446655440002",
"name": "Updated Node Name",
"type": 2,
"path": "1.2.4",
"int_id": 3,
"created_at": "2025-01-03T10:00:00Z",
"updated_at": "2025-01-03T11:00:00Z"
}
Example cURL Request
curl -X PUT https://<base-url>/api/v1/integration/nodes/550e8400-e29b-41d4-a716-446655440001 \
-H "Authorization: Bearer <access_token>" \
-H "X-Target-Server: integration" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Node Name",
"type": 2
}'