PUT
/
api
/
v1
/
agents
/
{id}
curl --request PUT \
  --url https://cx-staging-three.fly.dev/api/v1/agents/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "John Doe",
  "lastname": "Doe",
  "imageURL": "https://example.com/image.jpg",
  "language": "en-US",
  "voiceStability": 0.5,
  "voiceSpeed": 1.5,
  "voiceId": "1234567890",
  "capabilities": [
    "answer",
    "dial"
  ],
  "inboundCapability": "answer",
  "phone": "+1234567890",
  "jobDescriptions": "Customer Support",
  "roleText": "Customer Support",
  "baseInstructions": "Welcome to our customer support!",
  "id": "<string>"
}'
{
  "id": "1234567890",
  "name": "John Doe",
  "email": "john.doe@example.com",
  "language": "en-US",
  "active": true,
  "voiceSpeed": 1.5,
  "voiceId": "1234567890",
  "capabilities": [
    "capability1",
    "capability2"
  ],
  "jobDescriptions": "Job description 1",
  "roleText": "Role text 1",
  "actions": [
    {
      "id": "1234567890",
      "name": "Action 1",
      "action": "action1",
      "parameters": {}
    }
  ],
  "skills": [
    {
      "id": "1234567890",
      "name": "Skill 1",
      "description": "Description of the skill 1",
      "language": "en-US",
      "active": true
    }
  ],
  "phone": "+1234567890",
  "updatedAt": "2022-01-01T00:00:00.000Z",
  "createdAt": "2022-01-01T00:00:00.000Z"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The id of the agent

Body

application/json
Input data for updating the AI agent
lastname
string | null
required

The last name of the voicebot

imageURL
string | null
required

The image URL of the voicebot

language
string | null
required

The language of the voicebot

voiceStability
number | null
required

The voice stability of the voicebot

voiceSpeed
number | null
required

The voice speed of the voicebot

voiceId
string | null
required

The voice ID of the voicebot

capabilities
string[] | null
required

The capabilities of the voicebot

inboundCapability
string | null
required

The inbound capability of the voicebot

phone
string | null
required

The phone number of the voicebot

jobDescriptions
string | null
required

The job descriptions of the voicebot

roleText
string | null
required

The role text of the voicebot

baseInstructions
string | null
required

The base instructions of the voicebot

id
string
required
name
string

The name of the voicebot

Response

200
application/json
The updated AI agent
id
string
required

The id of the agent

name
string | null
required

The name of the agent

email
string | null
required

The email of the agent

language
string | null
required

The language of the agent

active
boolean | null
required

The active status of the agent

voiceSpeed
number | null
required

The voice speed of the agent

voiceId
string | null
required

The voice id of the agent

capabilities
string[] | null
required

The capabilities of the agent

jobDescriptions
string | null
required

The job descriptions of the agent

roleText
string | null
required

The role text of the agent

actions
string[] | null
required

The actions of the agent

skills
string[] | null
required

The skills of the agent

phone
string | null
required

The phone number of the agent

updatedAt
string | null
required

The updatedAt date of the agent

createdAt
string | null
required

The createdAt date of the agent