Saltar para o conteúdo principal
PATCH
/
public
/
api
/
v1
/
agents
/
{agentPublicId}
/
channels
/
{channelConnectionPublicId}
/
instance-mode
Toggle STATIC/DYNAMIC instance mode
curl --request PATCH \
  --url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/channels/{channelConnectionPublicId}/instance-mode \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "confirm": true
}
'
{
  "channelName": "<string>",
  "channelSpecificConfig": {},
  "channelType": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "isActive": true,
  "isConfigured": true,
  "publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

agentPublicId
string<uuid>
obrigatório
channelConnectionPublicId
string<uuid>
obrigatório

Corpo

application/json

Body for updating the channel instance mode of an agent's channel link.

mode
enum<string>
obrigatório

New instance mode for the channel.

Opções disponíveis:
STATIC,
DYNAMIC
confirm
boolean

Set to true to confirm a destructive change (e.g. switching modes that resets channel state).

Exemplo:

true

Resposta

OK

Agent channel connection. credentials NEVER returned.

channelName
string
channelSpecificConfig
object
channelType
string
createdAt
string<date-time>
instanceMode
enum<string>
Opções disponíveis:
STATIC,
DYNAMIC
isActive
boolean
isConfigured
boolean
publicId
string<uuid>
updatedAt
string<date-time>