Crear nueva conexión entre nodos
🚀 Servidor de producción
https://api.hiveflow.com/api
🚀 Servidor de producción
https://api.hiveflow.com/api
POST
/flows/{flowId}/edges
Conexiones
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hiveflow.com/api/flows//edges' \
--header 'Content-Type: application/json' \
--data-raw '{
"source": "node-1",
"target": "node-2",
"sourceHandle": "output",
"targetHandle": "input",
"type": "smoothstep",
"animated": false,
"style": {
"stroke": "#ff0000",
"strokeWidth": 2,
"strokeDasharray": "5,5"
},
"data": {
"isConditional": false,
"conditionIndex": 0,
"conditionValue": "true",
"label": "Si es positivo",
"weight": 1,
"metadata": {}
}
}'
Response Response Example
201 - Example 1
{
"success": true,
"edge": {
"id": "string",
"source": "string",
"target": "string",
"sourceHandle": "string",
"targetHandle": "string",
"type": "string",
"data": {
"isConditional": true,
"conditionIndex": 0
}
},
"message": "Conexión creada exitosamente"
}
Request
Path Params
flowId
string
required
Body Params application/json
Responses
Modified at 2025-06-19 15:26:15