PUT
/
agents
/
update?id=
{agentId}
{
  "success": true,
  "data": [
    {}
  ],
  "status": 123
}

Authorization

authorization
string
required

Your API key for authentication.

agentId
string
required

The unique identifier for the agent being updated.

Body

name
string
required

The name of the agent to be created.

welcomeMessage
string
required

The welcome message to be delivered by the agent.

task
string
required

The specific task the agent is responsible for.

voice
string
required

The voice to be used by the agent for communication.

language
string
required

The language the agent will use for communication.

telephonyProvider
string
required

The telephony provider to be used for the agent’s calls.

callTermination
number
required

The conditions under which the call will be terminated in seconds.

hangupMessage
string
required

The message to be delivered when the call is terminated.

Response

success
boolean

Indicates if the request was successful.

data
array

An array of agent objects.

status
number

The status code of the response.