Saltar para o conteúdo principal
PATCH
/
public
/
api
/
v1
/
http-tools
/
{httpToolPublicId}
Update HTTP tool
curl --request PATCH \
  --url https://api.gennia.ai/public/api/v1/http-tools/{httpToolPublicId} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data @- <<EOF
{
  "configuration": {},
  "description": "Fetches a user's profile information from the CRM by user ID.",
  "name": "fetch-user-profile-v2",
  "requiresApproval": true
}
EOF
{
  "configuration": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "createdBy": {
    "name": "<string>",
    "publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "description": "<string>",
  "name": "<string>",
  "publicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "requiresApproval": true,
  "updatedAt": "2023-11-07T05:31:56Z"
}

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

httpToolPublicId
string<uuid>
obrigatório

Corpo

application/json

Body for updating an existing HTTP tool. All fields are optional; only provided fields are updated.

configuration
object

New tool-type-specific configuration object. Shape depends on the tool's toolType.

description
string

New human-readable description of what the tool does.

Maximum string length: 1000
Exemplo:

"Fetches a user's profile information from the CRM by user ID."

name
string

New stable identifier of the tool. Must contain only letters, digits, underscores and hyphens.

Maximum string length: 150
Pattern: ^[a-zA-Z0-9_-]+$
Exemplo:

"fetch-user-profile-v2"

requiresApproval
boolean

Whether invocations of this tool require human approval before execution.

Exemplo:

true

toolType
enum<string>

Tool type is immutable. Sending this field returns 400 IMMUTABLE_FIELD.

Opções disponíveis:
HTTP_REQUEST,
DATABASE_QUERY,
INTERNAL_VARIABLE,
CUSTOM_INTEGRATION,
PIPEDREAM_MCP

Resposta

OK

HTTP/DB/Custom tool owned by the workspace.

configuration
object

Tool-type-specific configuration; opaque to the public API.

createdAt
string<date-time>
createdBy
object

Creator. {publicId: null, name: "API Key"} for API-key-created tools.

description
string
name
string
publicId
string<uuid>
requiresApproval
boolean
toolType
enum<string>
Opções disponíveis:
HTTP_REQUEST,
DATABASE_QUERY,
INTERNAL_VARIABLE,
CUSTOM_INTEGRATION
updatedAt
string<date-time>