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

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

payload = {
    "name": "<string>",
    "description": "<string>",
    "base_url": "<string>",
    "auth_key": "<string>",
    "headers": {}
}
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",
  "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "base_url": "<string>",
  "auth_type": "NONE",
  "integration_type": "HTTP",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "auth_key": "<string>",
  "headers": {}
}

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 schema for updating an integration.

name
string | null

Integration name

description
string | null

Integration description

base_url
string | null

Base URL

auth_key
string | null

API key (will be encrypted)

headers
Headers · object

Custom headers

Response

Successful Response

Response schema for integration.

id
string<uuid>
required
company_id
string<uuid>
required
name
string
required
base_url
string
required
auth_type
enum<string>
required
Opciones disponibles:
NONE,
OAUTH,
API_KEY
integration_type
enum<string>
required

Integration type enum

Opciones disponibles:
HTTP,
MCP
created_at
string<date-time>
required
updated_at
string<date-time>
required
description
string | null
auth_key
string | null
headers
Headers · object