curl --location --request POST 'https://api.hiveflow.ai/api/flows//nodes//duplicate' \
--header 'Content-Type: application/json' \
--data-raw '{
"position": {
"x": 0,
"y": 0
},
"nameSuffix": " (Copia)",
"includeHistory": false
}'
{
"success": true,
"node": {
"id": "string",
"type": "string",
"position": {
"x": 0,
"y": 0
},
"data": {
"agentName": "string",
"llm": "openai",
"model": "string",
"agentObjective": "string",
"url": "string",
"prompt": "string",
"nodeType": "llm",
"conditions": [
{
"prompt": "string",
"targetNodeId": "string",
"usePrompt": true
}
]
}
},
"originalNodeId": "string"
}