curl --request PATCH \
--url https://agent-studio.thena.ai/api/v1/flows/executions/{execution_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"status": "pending",
"completed_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"final_output": {},
"error_message": "<string>",
"error_details": {},
"retry_count": 123,
"tokens_used": 123,
"tool_calls_count": 123,
"cost_estimate": 123,
"performance_metrics": {},
"metadata": {}
}'
{
"id": "<string>",
"flow_id": "<string>",
"agent_id": "<string>",
"organization_id": "<string>",
"execution_number": 123,
"trigger_type": "manual",
"trigger_data": {},
"variables": {},
"priority": "low",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"timeout_seconds": 300,
"steps": [
{
"step_id": "<string>",
"step_name": "<string>",
"step_type": "<string>",
"tool_name": "<string>",
"status": "pending",
"input_data": {},
"output_data": {},
"error_message": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"retry_count": 0,
"metadata": {}
}
],
"final_output": {},
"error_message": "<string>",
"error_details": {},
"retry_count": 0,
"max_retries": 3,
"parent_execution_id": "<string>",
"tokens_used": 123,
"tool_calls_count": 0,
"cost_estimate": 123,
"performance_metrics": {},
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Update execution status or metadata.
Allows updating:
curl --request PATCH \
--url https://agent-studio.thena.ai/api/v1/flows/executions/{execution_id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"status": "pending",
"completed_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"final_output": {},
"error_message": "<string>",
"error_details": {},
"retry_count": 123,
"tokens_used": 123,
"tool_calls_count": 123,
"cost_estimate": 123,
"performance_metrics": {},
"metadata": {}
}'
{
"id": "<string>",
"flow_id": "<string>",
"agent_id": "<string>",
"organization_id": "<string>",
"execution_number": 123,
"trigger_type": "manual",
"trigger_data": {},
"variables": {},
"priority": "low",
"status": "pending",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"timeout_seconds": 300,
"steps": [
{
"step_id": "<string>",
"step_name": "<string>",
"step_type": "<string>",
"tool_name": "<string>",
"status": "pending",
"input_data": {},
"output_data": {},
"error_message": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"retry_count": 0,
"metadata": {}
}
],
"final_output": {},
"error_message": "<string>",
"error_details": {},
"retry_count": 0,
"max_retries": 3,
"parent_execution_id": "<string>",
"tokens_used": 123,
"tool_calls_count": 0,
"cost_estimate": 123,
"performance_metrics": {},
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Model for updating flow execution status.
Successful Response
Complete flow execution record.