curl --location -g --request PUT 'https:///api/v2/workflows/' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My Workflow",
"nodes": [
{
"id": "1",
"type": "parallel_processor",
"data": {
"start": true,
"end": false
}
},
{
"id": "2",
"type": "agent",
"data": {
"agent_id": "264",
"start": false,
"end": false
}
},
{
"id": "3",
"type": "agent",
"data": {
"agent_id": "265",
"start": false,
"end": false
}
},
{
"id": "4",
"type": "agent",
"data": {
"agent_id": "266",
"start": false,
"end": false
}
},
{
"id": "5",
"type": "consolidator",
"data": {
"start": false,
"end": true
}
}
],
"edges": [
{
"id": "e1-2",
"source": "1",
"target": "2",
"type": "simple"
},
{
"id": "e1-3",
"source": "1",
"target": "3",
"type": "simple"
},
{
"id": "e1-4",
"source": "1",
"target": "4",
"type": "simple"
},
{
"id": "e2-5",
"source": "2",
"target": "5",
"type": "simple"
},
{
"id": "e3-5",
"source": "3",
"target": "5",
"type": "simple"
},
{
"id": "e4-5",
"source": "4",
"target": "5",
"type": "simple"
}
]
}'
{
"success": true,
"message": "Workflow updated successfully",
"data": {
"id": 5,
"workflow_name": "My Workflow",
"nodes": [
{
"id": "1",
"type": "parallel_processor",
"data": {
"start": true,
"end": false
}
},
{
"id": "2",
"type": "agent",
"data": {
"agent_id": "264",
"start": false,
"end": false
}
},
{
"id": "3",
"type": "agent",
"data": {
"agent_id": "265",
"start": false,
"end": false
}
},
{
"id": "4",
"type": "agent",
"data": {
"agent_id": "266",
"start": false,
"end": false
}
},
{
"id": "5",
"type": "consolidator",
"data": {
"start": false,
"end": true
}
}
],
"edges": [
{
"id": "e1-2",
"source": "1",
"target": "2",
"type": "simple"
},
{
"id": "e1-3",
"source": "1",
"target": "3",
"type": "simple"
},
{
"id": "e1-4",
"source": "1",
"target": "4",
"type": "simple"
},
{
"id": "e2-5",
"source": "2",
"target": "5",
"type": "simple"
},
{
"id": "e3-5",
"source": "3",
"target": "5",
"type": "simple"
},
{
"id": "e4-5",
"source": "4",
"target": "5",
"type": "simple"
}
],
"sample_questions": [
"How can social media data be leveraged to identify emerging trends and consumer preferences?",
"Describe a research project aimed at understanding the impact of social media on consumer behavior and decision-making.",
"Discuss the potential ethical implications of using AI and machine learning algorithms in social media research and development."
],
"is_deleted": false,
"created_by": "admin@ejento.ai",
"created_on": "2025-05-13T23:02:37.912283Z",
"user": 1,
"project": 1
}
}