Skip to main content
PATCH
/
agents
/
{agent_id}
Update Agent
curl --request PATCH \
  --url https://call.aivoco.on.cloud.vispark.in/agents/{agent_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "system_message": "<string>",
  "voice": "boy",
  "functions": {
    "functions": [
      {
        "name": "<string>",
        "description": "<string>",
        "api_url": "<string>",
        "method": "GET",
        "parameters": {
          "type": "<string>",
          "properties": {},
          "required": [
            "<string>"
          ]
        }
      }
    ]
  }
}'
{
  "id": "<string>",
  "name": "<string>",
  "system_message": "<string>",
  "voice": "boy",
  "functions": {
    "functions": [
      {
        "name": "<string>",
        "description": "<string>",
        "api_url": "<string>",
        "method": "GET",
        "parameters": {
          "type": "<string>",
          "properties": {},
          "required": [
            "<string>"
          ]
        }
      }
    ]
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

agent_id
string
required

Body

application/json
id
string
name
string
system_message
string
voice
enum<string>
Available options:
boy,
girl
functions
object

Response

200 - application/json
id
string
name
string
system_message
string
voice
enum<string>
Available options:
boy,
girl
functions
object