Saltar al contenido principal
PATCH
/
v1
/
integration
/
{integration_id}
/
tool
/
{tool_id}
Update Integration Tool
import requests

url = "http://localhost:3000/v1/integration/{integration_id}/tool/{tool_id}"

payload = {
    "name": "<string>",
    "description": "<string>",
    "endpoint_path": "<string>",
    "query": [
        {
            "name": "<string>",
            "data_type": "string",
            "description": "<string>",
            "required": True,
            "value_source": "llm",
            "fixed_value": "<string>",
            "properties": ["<unknown>"]
        }
    ],
    "body": [
        {
            "name": "<string>",
            "data_type": "string",
            "description": "<string>",
            "required": True,
            "value_source": "llm",
            "fixed_value": "<string>",
            "properties": ["<unknown>"]
        }
    ],
    "headers": {},
    "method": "GET",
    "timeout": 123,
    "aprove_required": True
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "type": "HTTP",
  "endpoint_path": "<string>",
  "query": [],
  "body": [],
  "headers": {},
  "method": "GET",
  "timeout": 123,
  "aprove_required": false
}

Authorizations

Authorization
string
header
required

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

Path Parameters

integration_id
string<uuid>
required

Integration ID

tool_id
string<uuid>
required

Tool ID

Body

application/json
name
string | null

The name of the tool

description
string | null

The description given to the agent to understand the tool

endpoint_path
string | null

The endopint path of the tool

query
ParamSchema · object[] | null

The query parameters for the tool

body
ParamSchema · object[] | null

The body parameters for the tool

headers
Headers · object

The headers for the tool

method
enum<string> | null

The HTTP method for the tool

Opciones disponibles:
GET,
POST,
PUT,
DELETE,
PATCH
timeout
integer | null

Timeout for the API to send a response

aprove_required
boolean | null

If true, the agent will ask for confirmation before executing

Response

Successful Response

  • HttpToolResponseSchema
  • McpToolSchema
id
string<uuid>
required

The unique identifier for the tool

name
string
required

The name of the tool

description
string | null
required

The description given to the agent to understand the tool

type
string
default:HTTP
Allowed value: "HTTP"
endpoint_path
string | null

The URL to the endpoint of the tool

query
ParamSchema · object[] | null

The query parameters for the tool

body
ParamSchema · object[] | null

The body parameters for the tool

headers
Headers · object

The headers for the tool

method
enum<string> | null

The HTTP method for the tool

Opciones disponibles:
GET,
POST,
PUT,
DELETE,
PATCH
timeout
integer | null

Timeout for the API to send a response

aprove_required
boolean
default:false

If true, the agent will ask for confirmation before executing