PUT
/
agents
/
{agent_id}
/
executions
/
{execution_id}
Update agent execution status
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
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

agent_id
string
required
execution_id
string
required

Body

application/json

Response

200
application/json

Agent execution updated successfully

The response is of type object.