curl --location --request POST 'https://api.hiveflow.ai/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": {}
}
}'
{
"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"
}