Skip to main content
PATCH
/
api
/
v1
/
agent-executions
/
{agent_execution_id}
Update Agent Execution
curl --request PATCH \
  --url https://api.example.com/api/v1/agent-executions/{agent_execution_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "state": {
    "dataExtracted": {},
    "status": "PENDING_REVIEW"
  }
}
'
{
  "agentId": "<string>",
  "workspaceId": "<string>",
  "state": {
    "status": "PENDING_INPUTS"
  },
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_execution_id
string<uuid4>
required

Body

application/json
state
AgentExecutionPendingReview · object
required

Response

Successful Response

agentId
string<uuid4>
required
workspaceId
string<uuid4>
required
state
AgentExecutionStatePendingInputs · object
required
id
string<uuid4>
createdAt
string<date-time>
updatedAt
string<date-time>