Saltar al contenido principal
PATCH
/
v1
/
integration
/
{integration_id}
/
tool-approval
Update tool approval settings
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"
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

integration_id
string<uuid>
requerido

Integration ID

Cuerpo

application/json

Request to bulk update approval settings for tools.

tools
ToolApprovalUpdate · object[]
requerido

List of tools to update with their new approval settings

Minimum array length: 1

Respuesta

Successful Response