cURL
curl --request PUT \ --url https://app.kapso.ai/api/v1/agents/{agent_id}/executions/{execution_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "agent_execution": { "status": "ended" } }'
{ "data": { "id": "execution-789ghi", "agent_id": "agent-123abc", "thread_id": "thread-101jkl", "status": "running", "started_at": "2023-11-07T05:31:56Z", "ended_at": "2023-11-07T05:31:56Z", "duration": 123 } }
Updates the status of an agent execution
API key required for all endpoints
Agent execution updated successfully
The response is of type object.
object
Was this page helpful?