Pular para o conteúdo principal
PUT
Update an agent bot

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

id
string
obrigatório

The ID of the agentbot to be updated

Corpo

application/json
name
string

The name of the agent bot

Exemplo:

"My Agent Bot"

description
string

The description of the agent bot

Exemplo:

"This is a sample agent bot"

outgoing_url
string

The webhook URL for the bot

Exemplo:

"https://example.com/webhook"

avatar
file

Send the form data with the avatar image binary or use the avatar_url

avatar_url
string

The url to a jpeg, png file for the agent bot avatar

Exemplo:

"https://example.com/avatar.png"

bot_type
integer

The type of the bot (0 for webhook)

Exemplo:

0

bot_config
object

The configuration for the bot

Exemplo:

Resposta

Success

id
number

ID of the agent bot

name
string

The name of the agent bot

description
string

The description about the agent bot

thumbnail
string

The thumbnail of the agent bot

outgoing_url
string

The webhook URL for the bot

bot_type
string

The type of the bot

bot_config
object

The configuration of the bot

account_id
number

Account ID if it's an account specific bot

access_token
string

The access token for the bot

system_bot
boolean

Whether the bot is a system bot