Authorization: Bearer ********************{
"data_source": {
"file_list": [
{
"leaf": true,
"created_time": "1754385453",
"modified_time": "1775100402",
"name": "MaxKB文档02",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "YBubddyzioD13PxxAuBcZMBTnjd",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/YBubddyzioD13PxxAuBcZMBTnjd"
},
{
"leaf": true,
"created_time": "1769682177",
"modified_time": "1769682177",
"name": "MaxKB 对话用户对接 CAS 副本",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "IFKjdFEsAoOrKNxV12TclIS6noh",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/IFKjdFEsAoOrKNxV12TclIS6noh"
},
{
"leaf": true,
"created_time": "1769681734",
"modified_time": "1769681743",
"name": "测试",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "GgYqdPVDJoYSi7xxDF3c552qnQb",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/GgYqdPVDJoYSi7xxDF3c552qnQb"
},
{
"leaf": true,
"created_time": "1754385830",
"modified_time": "1754401379",
"name": "MaxKB文档01",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "ArRbdNWzlo6PbNxRwkecT9XLnVg",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/ArRbdNWzlo6PbNxRwkecT9XLnVg"
}
],
// 工作流知识库中上传文档组件的 node_id (可在 data-workflow-nodes 中根据 stepName 获取)
"node_id": "50dc7681-0908-44aa-ba4b-3533fbbb5491"
}
}curl --location --globoff '{{Host}}/admin/api/workspace/default/knowledge/019d4bf9-3625-7412-a8a1-e84c1d5e1d2e/upload_document' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"data_source": {
"file_list": [
{
"leaf": true,
"created_time": "1754385453",
"modified_time": "1775100402",
"name": "MaxKB文档02",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "YBubddyzioD13PxxAuBcZMBTnjd",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/YBubddyzioD13PxxAuBcZMBTnjd"
},
{
"leaf": true,
"created_time": "1769682177",
"modified_time": "1769682177",
"name": "MaxKB 对话用户对接 CAS 副本",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "IFKjdFEsAoOrKNxV12TclIS6noh",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/IFKjdFEsAoOrKNxV12TclIS6noh"
},
{
"leaf": true,
"created_time": "1769681734",
"modified_time": "1769681743",
"name": "测试",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "GgYqdPVDJoYSi7xxDF3c552qnQb",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/GgYqdPVDJoYSi7xxDF3c552qnQb"
},
{
"leaf": true,
"created_time": "1754385830",
"modified_time": "1754401379",
"name": "MaxKB文档01",
"owner_id": "ou_9d56555d1a88ae4c1bbf021ebb12ee04",
"parent_token": "SiYkfJsT7lCBtWdB4ubcDFrfnyb",
"token": "ArRbdNWzlo6PbNxRwkecT9XLnVg",
"type": "docx",
"url": "https://mcnh9lofsi78.feishu.cn/docx/ArRbdNWzlo6PbNxRwkecT9XLnVg"
}
],
// 工作流知识库中上传文档组件的 node_id (可在 data-workflow-nodes 中根据 stepName 获取)
"node_id": "50dc7681-0908-44aa-ba4b-3533fbbb5491"
}
}'{}