PUT
/
api
/
v1
/
bot
/
{id}
curl --request PUT \
  --url https://chat.api.toolzz.com.br/api/v1/bot/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "model": "<string>",
  "description": "<string>",
  "prompt": "<string>",
  "credentialId": "<string>"
}'
{
  "prompt": "<string>",
  "description": "<string>",
  "folders": [
    "<any>"
  ],
  "plugins": [
    "<any>"
  ],
  "botGenAI": "<any>",
  "assistantId": "<string>",
  "IconFile": "<any>",
  "widgetId": "<string>",
  "tags": [
    "<string>"
  ],
  "unityId": "<string>",
  "progressStatus": "<string>",
  "safeMode": true,
  "institutionId": "<string>",
  "indexService": "<string>",
  "isActivated": true
}

Parameters Description

id
string

Id of the bot

name
string

Name of the bot

model
string

Model of the bot

description
string

Description of the bot

prompt
string

Prompt of the bot

credentialId
string

ID of credential bot

Response Description

Below you will see the description of the bot response

prompt
string
required

Text or command used as input for the bot.

description
string
required

Detailed description of the bot’s purpose or functionality.

folders
any[]
required

List of folders associated with the bot.

plugins
any[]
required

Active plugins or integrations for the bot.

botGenAI
any
required

Settings related to the bot’s artificial intelligence.

assistantId
string
required

Unique ID of the linked assistant.

IconFile
any
required

Icon file associated with the bot.

widgetId
string

Optional ID of the linked widget.

tags
string[]

List of tags associated with the bot.

unityId
string

ID of the organizational unit.

progressStatus
string

Progress status of the bot.

safeMode
boolean

Indicates whether safe mode is enabled.

institutionId
string
required

ID of the institution responsible for the bot.

indexService
string

Indexing service linked to the bot.

isActivated
boolean
required

Activation status of the bot.

Segurança

Para acessar este endpoint, é necessário enviar um token de acesso válido através do cabeçalho de autorização (Authorization) da requisição. Além disso, a API é protegida por outras medidas de segurança para proteger os dados dos usuários.