创建知识库同步链路
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID |
cn-beijing |
| KnowledgeBaseId |
string |
是 |
知识库唯一标识 |
pkb-xxxxx |
| LinkName |
string |
是 |
链路名称 |
testName |
| SourceType |
string |
是 |
数据源类型,支持 FEISHU、SHAREPOINT |
FEISHU |
| TenantId |
string |
否 |
租户 ID,SourceType 为 SHAREPOINT 时必填 |
63eexxxx-xxxx-xxxx-xxxx-xxxxxx090f82 |
| UserId |
string |
否 |
钉钉操作用户 ID |
123***56 |
| ClientId |
string |
是 |
客户端标识 |
cli_xxxxxxbe8 |
| ClientSecret |
string |
是 |
客户端密钥信息 |
****** |
| UserAccessToken |
string |
否 |
飞书用户访问令牌,仅在应用身份因机器人不在群聊而无法展开群成员时使用 |
****** |
| McpEndpoint |
string |
否 |
钉钉文档 MCP Server 地址 |
https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx789?key=d5e6fxxxxxx876 |
| SheetMcpEndpoint |
string |
否 |
钉钉表格 MCP Server 地址 |
https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx567?key=d5e6fxxxxxx543 |
| SourceDir |
string |
是 |
同步源目录地址 |
https://example.feishu.cn/wiki/space/xxxxxx |
| Description |
string |
否 |
同步链路描述 |
testDesc |
| SyncIntervalMinutes |
integer |
否 |
同步时间间隔,单位:分钟 |
30 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| ClientId |
string |
客户端标识 |
cli_xxxxxxbe8 |
| CreationTime |
string |
创建时间 时间采用 ISO 8601 格式,时区为 UTC(格式:YYYY-MM-DDTHH:mm:ssZ)。 |
2026-08-14T05:58:42Z |
| Description |
string |
链路描述 |
testDesc |
| ImPlatform |
string |
同步链路来源渠道,取值:
|
FEISHU |
| LinkId |
string |
同步链路 ID |
pkbl-xxxxxx |
| LinkName |
string |
链路名称 |
testName |
| RequestId |
string |
Id of the request |
24A1990B-4F6E-482B-B8CB-75C612****** |
| SourceDir |
string |
同步源目录地址 |
https://example.feishu.cn/wiki/space/xxxxxx |
| SyncIntervalMinutes |
integer |
同步时间间隔,单位:分钟 |
30 |
| SyncStatus |
string |
同步状态,取值:
|
CREATING |
示例
正常返回示例
JSON格式
{
"ClientId": "cli_xxxxxxbe8",
"CreationTime": "2026-08-14T05:58:42Z",
"Description": "testDesc",
"ImPlatform": "FEISHU",
"LinkId": "pkbl-xxxxxx",
"LinkName": "testName",
"RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
"SourceDir": "https://example.feishu.cn/wiki/space/xxxxxx\n",
"SyncIntervalMinutes": 30,
"SyncStatus": "CREATING"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。