PUT
/
api
/
v1
/
bot
/
{botId}
/
configuration
/
fallback
/
{id}
curl --request PUT \
  --url https://chat.api.toolzz.com.br/api/v1/bot/{botId}/configuration/fallback/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fallbacks": [
    {}
  ]
}'
{
  "id": "<string>",
  "botId": "<string>",
  "order": 123,
  "credentialId": "<string>",
  "model": "<string>",
  "createdAt": "<string>",
  "credential": {
    "id": "<string>",
    "name": "<string>",
    "userId": "<string>",
    "unityId": "<string>",
    "integrationId": "<string>",
    "secretId": "<string>",
    "status": true,
    "virtualKey": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "integration": {
      "id": "<string>",
      "name": "<string>",
      "iconId": "<string>",
      "type": "<string>",
      "form": [
        {}
      ],
      "form.api_key": "<string>",
      "status": true,
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "slug": "<string>",
      "file": {
        "id": "<string>",
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "institutionId": "<string>",
        "type": "<string>",
        "fileName": "<string>",
        "internalStorageUrl": "<string>",
        "url": "<string>",
        "size": 123,
        "extension": "<string>",
        "maskName": "<string>"
      }
    }
  }
}

Body Description

botId
string

The botId

fallbackId
string

The fallbackId

fallbacks
array
required

The fallbackId

Response Description

Below you will see the description of the Fallback update response

id
string
required

Unique identifier for the entity.

botId
string
required

ID of the associated bot.

order
number
required

Order or priority of the configuration.

credentialId
string
required

ID of the associated credential.

model
string
required

Model name used for processing.

createdAt
Date
required

Date and time when the entity was created.

credential
object
required

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.