Skip to main content
PATCH
/
api
/
agents
/
{agentId}
Update agent
curl --request PATCH \
  --url https://api.upon-ai.com/api/agents/{agentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": 123,
  "response_engine": {
    "type": "<string>",
    "llm_id": "<string>"
  },
  "interruption_sensitivity": "<string>",
  "max_call_duration_ms": 123,
  "responsiveness": "<string>"
}
'
{
  "agent_id": "<string>",
  "version": 123,
  "agent_name": "<string>",
  "voice_id": "<string>",
  "response_engine": {
    "type": "<string>",
    "llm_id": "<string>"
  },
  "response_threshold": 123,
  "interruption_sensitivity": "<string>",
  "ambient_sound": "<string>",
  "responsiveness": "<string>",
  "max_call_duration_ms": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "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

agentId
string
required

Agent identifier.

Query Parameters

version
integer

Specific version to retrieve or update.

Required range: x >= 1

Body

application/json
workspaceId
integer
required
response_engine
object
interruption_sensitivity
string
max_call_duration_ms
integer
responsiveness
string

Response

200 - application/json

Updated agent.

agent_id
string
required
version
integer
required
agent_name
string
voice_id
string
response_engine
object
response_threshold
number | null
interruption_sensitivity
string | null
ambient_sound
string | null
responsiveness
string | null
max_call_duration_ms
integer | null
created_at
string<date-time> | null
updated_at
string<date-time> | null