curl --location --request PATCH 'https://api.hiveflow.ai/api/flows//archive' \
--header 'Content-Type: application/json' \
--data-raw '{
"archived": true
}'
{
"success": true,
"flow": {
"_id": "string",
"name": "string",
"description": "string",
"status": "draft",
"executionState": "paused",
"nodes": [
{
"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
}
]
}
}
],
"edges": [
{
"id": "string",
"source": "string",
"target": "string",
"sourceHandle": "string",
"targetHandle": "string",
"type": "string",
"data": {
"isConditional": true,
"conditionIndex": 0
}
}
],
"owner": "string",
"processCount": 0,
"version": 1,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
},
"message": "Flujo archivado exitosamente"
}