跳转到主要内容
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>"
    }
  }
}
'

授权

Authorization
string
header
必填

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

路径参数

spaceId
string
必填
integrationId
string
必填

请求体

application/json
enable
boolean
config
object

响应

200

Successful response.

Last modified on December 10, 2025