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

The body is of type object.

Response

204
application/json

Regra de transferência atualizada com sucesso

The response is of type object.