Creates a knowledge base synchronization link.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateKBSyncLink |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-beijing |
| KnowledgeBaseId |
string |
Yes |
The unique identifier of the knowledge base. |
pkb-xxxxx |
| LinkName |
string |
Yes |
The name of the synchronization link. |
testName |
| SourceType |
string |
Yes |
The data source type. Valid values: FEISHU, SHAREPOINT. |
FEISHU |
| TenantId |
string |
No |
The tenant ID. This parameter is required when SourceType is set to SHAREPOINT. |
63eexxxx-xxxx-xxxx-xxxx-xxxxxx090f82 |
| UserId |
string |
No |
The ID of the DingTalk user who performs the operation. |
123***56 |
| FeishuChatMemberStaleTtlSeconds |
integer |
No |
The time-to-live (TTL) of the successful snapshot of Lark chat members for fallback reuse, in seconds. This parameter can be explicitly set only for FEISHU synchronization links. A value of -1 indicates that the snapshot never expires. A value of 0 disables snapshot fallback reuse. A positive integer indicates the maximum age of the snapshot allowed for reuse. Default value: -1. If this parameter is not specified, the default value -1 is used. |
-1 |
| ClientId |
string |
Yes |
The client ID. |
cli_xxxxxxbe8 |
| ClientSecret |
string |
Yes |
The client secret. |
example-client-secret |
| UserAccessToken |
string |
No |
The Lark user access token. This token is used only when the application identity cannot expand chat members because the bot is not in the chat. |
example-user-access-token |
| UserRefreshToken |
string |
No |
The Lark user refresh token. This token must be provided together with UserAccessToken to automatically rotate the fallback identity for expanding chat members. |
example-user-refresh-token |
| McpEndpoint |
string |
No |
The endpoint of the DingTalk document MCP server. |
https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx789?key=d5e6fxxxxxx876 |
| SheetMcpEndpoint |
string |
No |
The endpoint of the DingTalk sheet MCP server. |
https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx567?key=d5e6fxxxxxx543 |
| SourceDir |
string |
Yes |
The address of the source directory for synchronization. |
https://example.feishu.cn/wiki/space/xxxxxx |
| Description |
string |
No |
The description of the synchronization link. |
testDesc |
| SyncIntervalMinutes |
integer |
No |
The synchronization interval, in minutes. |
30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ClientId |
string |
The client ID. |
cli_xxxxxxbe8 |
| CreationTime |
string |
The creation time. The time is displayed in ISO 8601 format in the UTC time zone (format: YYYY-MM-DDTHH:mm:ssZ). |
2026-08-14T05:58:42Z |
| Description |
string |
The description of the synchronization link. |
testDesc |
| ImPlatform |
string |
The source channel of the synchronization link. Valid values:
|
FEISHU |
| LinkId |
string |
The ID of the synchronization link. |
pkbl-xxxxxx |
| LinkName |
string |
The name of the synchronization link. |
testName |
| RequestId |
string |
The request ID. |
24A1990B-4F6E-482B-B8CB-75C612****** |
| SourceDir |
string |
The address of the source directory for synchronization. |
https://example.feishu.cn/wiki/space/xxxxxx |
| SyncIntervalMinutes |
integer |
The synchronization interval, in minutes. |
30 |
| SyncStatus |
string |
The synchronization status. Valid values:
|
CREATING |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.