Skip to main content
PUT
/
v2
/
agent
/
{agentId}
/
transfer-rules
/
{transfer-rule-id}
cURL
curl --request PUT \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/transfer-rules/{transfer-rule-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "instructions": "<string>",
  "returnOnFinish": true,
  "type": "HUMAN",
  "agentId": "<string>",
  "userId": "<string>"
}'
{
  "id": "<string>",
  "createdAt": "<string>",
  "instructions": "<string>",
  "returnOnFinish": true,
  "type": "HUMAN",
  "agentId": "<string>",
  "userId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

ID do agente

transfer-rule-id
string
required

ID da regra de transferência

Body

application/json

Dados da regra de transferência a ser atualizada

instructions
string

Instruções visíveis na transferência

returnOnFinish
boolean

Define se deve retornar ao assistente após o atendimento

type
enum<string>
Available options:
HUMAN,
AGENT
agentId
string | null

Id do agente de destino (se aplicável)

userId
string | null

Id do usuário de destino (se aplicável)

Response

Regra de transferência atualizada com sucesso

id
string

Id da regra

createdAt
string

Data de criação da regra de transferência

instructions
string

Instruções visíveis na transferência

returnOnFinish
boolean

Define se deve retornar ao assistente após o atendimento

type
enum<string>
Available options:
HUMAN,
AGENT
agentId
string | null

Id do agente de destino (se aplicável)

userId
string | null

Id do usuário de destino (se aplicável)

I