Saltar para o conteúdo principal
PATCH
/
public
/
api
/
v1
/
agents
/
{agentPublicId}
/
http-tools
/
{httpToolPublicId}
Update a tool link (active / requiresApproval)
curl --request PATCH \
  --url https://api.gennia.ai/public/api/v1/agents/{agentPublicId}/http-tools/{httpToolPublicId} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "active": true,
  "requiresApproval": false
}
'
{
  "active": true,
  "httpToolPublicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "requiresApproval": true,
  "toolName": "<string>"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

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

Corpo

application/json

Body for updating the link between an agent and an HTTP tool. Fields are tri-state: omit to leave unchanged, set to a value to update, or send null to clear.

active
object

Whether the tool is currently active for this agent.

Exemplo:

true

requiresApproval
object

Whether invocations of this tool require human approval before execution.

Exemplo:

false

Resposta

OK

HTTP tool linked to an agent.

active
boolean
httpToolPublicId
string<uuid>
requiresApproval
boolean
toolName
string
toolType
enum<string>
Opções disponíveis:
HTTP_REQUEST,
DATABASE_QUERY,
INTERNAL_VARIABLE,
CUSTOM_INTEGRATION,
PIPEDREAM_MCP