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

Example:

"Doe"

imageURL
string | null
required

The image URL of the voicebot

Example:

"https://example.com/image.jpg"

language
string | null
required

The language of the voicebot

Example:

"en-US"

voiceStability
number | null
required

The voice stability of the voicebot

Example:

0.5

voiceSpeed
number | null
required

The voice speed of the voicebot

Example:

1.5

voiceId
string | null
required

The voice ID of the voicebot

Example:

"1234567890"

capabilities
string[] | null
required

The capabilities of the voicebot

Example:
["answer", "dial"]
inboundCapability
string | null
required

The inbound capability of the voicebot

Example:

"answer"

phone
string | null
required

The phone number of the voicebot

Example:

"+1234567890"

jobDescriptions
string | null
required

The job descriptions of the voicebot

Example:

"Customer Support"

roleText
string | null
required

The role text of the voicebot

Example:

"Customer Support"

baseInstructions
string | null
required

The base instructions of the voicebot

Example:

"Welcome to our customer support!"

id
string
required
name
string

The name of the voicebot

Example:

"John Doe"

Response

200
application/json
The updated AI agent
id
string
required

The id of the agent

Example:

"1234567890"

name
string | null
required

The name of the agent

Example:

"John Doe"

email
string | null
required

The email of the agent

Example:

"john.doe@example.com"

language
string | null
required

The language of the agent

Example:

"en-US"

active
boolean | null
required

The active status of the agent

Example:

true

voiceSpeed
number | null
required

The voice speed of the agent

Example:

1.5

voiceId
string | null
required

The voice id of the agent

Example:

"1234567890"

capabilities
string[] | null
required

The capabilities of the agent

Example:
["capability1", "capability2"]
jobDescriptions
string | null
required

The job descriptions of the agent

Example:

"Job description 1"

roleText
string | null
required

The role text of the agent

Example:

"Role text 1"

actions
string[] | null
required

The actions of the agent

Example:
[
  {
    "id": "1234567890",
    "name": "Action 1",
    "action": "action1",
    "parameters": {}
  }
]
skills
string[] | null
required

The skills of the agent

Example:
[
  {
    "id": "1234567890",
    "name": "Skill 1",
    "description": "Description of the skill 1",
    "language": "en-US",
    "active": true
  }
]
phone
string | null
required

The phone number of the agent

Example:

"+1234567890"

updatedAt
string | null
required

The updatedAt date of the agent

Example:

"2022-01-01T00:00:00.000Z"

createdAt
string | null
required

The createdAt date of the agent

Example:

"2022-01-01T00:00:00.000Z"