Node
Endpoints
Attributes
Field
Type
Description
HTTP methods
Field
GET
POST
PATCH
Example bodies
Post
Patch
OpenAPI
Last updated
Last updated
{
"data": {
"type": "nodes",
"attributes": {
"name": "My first Node",
"index": 0,
"isStartFlow": true
},
"relationships": {
"flow": {
"data": {
"type": "flows",
"id": "your-flow-id"
}
}
}
}
}{
"data": {
"id": "target-node-id",
"type": "nodes",
"attributes": {
"isStartFlow": false,
"isEndFlow": true,
"endFlowType": "accepted"
}
}
}GET /public/v2/nodes/{id} HTTP/1.1
Host: {defaultHost}
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": "8d328918-2622-4de5-a41c-9a8749fedeb0",
"type": "nodes",
"attributes": {
"createdAt": "2024-08-20T10:45:10+00:00",
"updatedAt": "2024-08-20T10:45:10+00:00",
"name": null,
"index": null,
"isStartFlow": null,
"isEndFlow": null,
"endFlowType": null
},
"relationships": {
"flow": {
"links": {
"related": "/public/v2/flows/d59eda89-c5ed-456a-b20c-799e4c08f094"
}
},
"nodeActions": {
"links": {
"related": "/public/v2/node-actions?filter[nodeId]=8d328918-2622-4de5-a41c-9a8749fedeb0"
}
},
"nodeTransitions": {
"links": {
"related": "/public/v2/node-transitions?filter[nodeId]=8d328918-2622-4de5-a41c-9a8749fedeb0"
}
}
}
},
"meta": {}
}PATCH /public/v2/nodes/{id} HTTP/1.1
Host: {defaultHost}
Authorization: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 132
{
"data": {
"id": "text",
"type": "text",
"attributes": {
"name": "text",
"index": 1,
"isStartFlow": true,
"isEndFlow": true,
"endFlowType": "text"
}
}
}{
"data": {
"id": "325adb99-db21-4773-817f-90c21bbd8a4f",
"type": "nodes",
"attributes": {
"createdAt": "2024-08-20T10:45:10+00:00",
"updatedAt": "2024-08-20T10:45:10+00:00",
"name": "Newest Name",
"index": null,
"isStartFlow": null,
"isEndFlow": null,
"endFlowType": null
},
"relationships": {
"flow": {
"links": {
"related": "/public/v2/flows/ac9c0791-a018-49e5-8881-0c06204b6c78"
}
},
"nodeActions": {
"links": {
"related": "/public/v2/node-actions?filter[nodeId]=325adb99-db21-4773-817f-90c21bbd8a4f"
}
},
"nodeTransitions": {
"links": {
"related": "/public/v2/node-transitions?filter[nodeId]=325adb99-db21-4773-817f-90c21bbd8a4f"
}
}
}
},
"meta": {}
}