import requests
url = "https://api.diga.io/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>"
}
],
"body": [
{
"name": "<string>",
"data_type": "string",
"description": "<string>",
"required": True,
"value_source": "llm",
"fixed_value": "<string>",
"properties": ["<unknown>"]
}
],
"headers": {},
"method": "GET",
"timeout": 123,
"approval_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>",
"headers": {},
"method": "GET",
"type": "HTTP",
"description": "<string>",
"endpoint_path": "<string>",
"query": [],
"body": [],
"timeout": 5,
"approval_required": false
}Update an existing HTTP tool’s configuration. Only works with HTTP integrations. MCP tools cannot be updated directly.
import requests
url = "https://api.diga.io/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>"
}
],
"body": [
{
"name": "<string>",
"data_type": "string",
"description": "<string>",
"required": True,
"value_source": "llm",
"fixed_value": "<string>",
"properties": ["<unknown>"]
}
],
"headers": {},
"method": "GET",
"timeout": 123,
"approval_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>",
"headers": {},
"method": "GET",
"type": "HTTP",
"description": "<string>",
"endpoint_path": "<string>",
"query": [],
"body": [],
"timeout": 5,
"approval_required": false
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Integration ID
Tool ID
The name of the tool
The description given to the agent to understand the tool
The endopint path of the tool
The query parameters for the tool
Mostrar atributos secundarios
The body parameters for the tool
Mostrar atributos secundarios
The headers for the tool
Mostrar atributos secundarios
The HTTP method for the tool
GET, POST, PUT, DELETE, PATCH Timeout for the API to send a response
If true, the agent will ask for confirmation before executing
Successful Response
The unique identifier for the tool
The name of the tool
The headers for the tool
Mostrar atributos secundarios
The HTTP method for the tool
GET, POST, PUT, DELETE, PATCH "HTTP"The description given to the agent to understand the tool
The URL to the endpoint of the tool
The query parameters for the tool
Mostrar atributos secundarios
The body parameters for the tool
Mostrar atributos secundarios
Timeout for the API to send a response
If true, the agent will ask for confirmation before executing