import requests
url = "https://api.diga.io/v1/integration/{integration_id}/tool-approval"
payload = { "tools": [
{
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_required": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": "error",
"error_code": "INTERNAL_SERVER_ERROR",
"message": "Missing required permissions to update integration tools"
}Batch update approval_required settings for multiple tools. Works with both HTTP and MCP tools. Tools requiring approval need explicit user confirmation before execution.
import requests
url = "https://api.diga.io/v1/integration/{integration_id}/tool-approval"
payload = { "tools": [
{
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_required": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": "error",
"error_code": "INTERNAL_SERVER_ERROR",
"message": "Missing required permissions to update integration tools"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Integration ID
Request to bulk update approval settings for tools.
List of tools to update with their new approval settings
1Mostrar atributos secundarios
Successful Response