跳转到主要内容
PATCH
/
space
/
{spaceId}
/
integration
/
{integrationId}
cURL
curl --request PATCH \
  --url http://127.0.0.1:3000/api/space/{spaceId}/integration/{integrationId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enable": true,
  "config": {
    "llmProviders": [],
    "embeddingModel": "<string>",
    "translationModel": "<string>",
    "chatModel": {
      "lg": "<string>",
      "md": "<string>",
      "sm": "<string>",
      "ability": {
        "image": true,
        "pdf": true,
        "webSearch": true
      }
    },
    "capabilities": {
      "disableActions": [
        "<string>"
      ]
    },
    "appConfig": {
      "apiKey": "<string>",
      "vercelToken": "<string>",
      "customDomain": "<string>",
      "creditCount": 1,
      "v0BaseUrl": "<string>",
      "vercelBaseUrl": "<string>",
      "aiGatewayApiKey": "<string>"
    },
    "webSearchConfig": {
      "apiKey": "<string>"
    }
  }
}
'

Authorizations

Authorization
string
header
required

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

Path Parameters

spaceId
string
required
integrationId
string
required

Body

application/json
enable
boolean
config
object

Response

200

Successful response.

Last modified on December 10, 2025