Saltar al contenido principal
PATCH
/
v1
/
integration
/
{integration_id}
/
tool-approval
Update Tools Approval
import requests

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

payload = { "tools": [
        {
            "tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "aprove_required": True
        }
    ] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.text)
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

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

Body

application/json

Request to bulk update approval settings for tools.

tools
ToolApprovalUpdate · object[]
required

List of tools to update with their new approval settings

Minimum array length: 1

Response

Successful Response