PUT
/
v2
/
agent
/
{agentId}
/
webhooks
curl --request PUT \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "onNewMessage": "<string>",
  "onLackKnowLedge": "<string>",
  "onTransfer": "<string>",
  "onFirstInteraction": "<string>",
  "onStartInteraction": "<string>",
  "onFinishInteraction": "<string>",
  "onCreateEvent": "<string>",
  "onCancelEvent": "<string>"
}'
{
  "success": true
}

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

Body

application/json

Configurações do agente a serem atualizadas

The body is of type object.

Response

200
application/json

Configurações atualizadas com sucesso

The response is of type object.