Authorization: Bearer ********************// 配合"分段文档"API格式示例
[
{
"name": "测试分段.docx",
"paragraphs": [
{
"content": "\n正文你好",
"title": "你好",
"is_active": true
},
],
"source_file_id": "019f208f-dbfb-7f30-b84a-0dbf50a6a729"
}
]
// 完整格式示例
// [
// {
// "name": "应用免登录配置.docx",
// "paragraphs": [
// {
// "content": "在钉钉开放平台创建应用并保存",
// "title": "创建应用",
// "problem_list": [
// {
// "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
// "content": "如何创建钉钉开放平台的应用?"
// },
// {
// "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
// "content": "创建应用后如何保存?"
// }
// ],
// "is_active": true
// },
// {
// "content": "添加网页应用",
// "title": "添加应用类型",
// "problem_list": [
// {
// "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
// "content": "如何添加网页应用类型?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置网页应用",
// "title": "配置网页应用",
// "problem_list": [
// {
// "id": "d4e5f6a7-b8c9-0123-def0-234567890123",
// "content": "配置网页应用需要填写哪些信息?"
// }
// ],
// "is_active": true
// },
// {
// "content": "安全设置",
// "title": "安全配置",
// "problem_list": [
// {
// "id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
// "content": "安全设置中的回调地址如何配置?"
// },
// {
// "id": "f6a7b8c9-d0e1-2345-f012-456789012345",
// "content": "安全设置需要开启哪些权限?"
// }
// ],
// "is_active": true
// },
// {
// "content": "发布",
// "title": "应用发布",
// "problem_list": [
// {
// "id": "a7b8c9d0-e1f2-3456-0123-567890123456",
// "content": "发布应用后需要做什么?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置登录认证",
// "title": "登录认证配置",
// "problem_list": [
// {
// "id": "b8c9d0e1-f2a3-4567-1234-678901234567",
// "content": "如何配置登录认证方式?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置访问限制",
// "title": "访问限制设置",
// "problem_list": [
// {
// "id": "c9d0e1f2-a3b4-5678-2345-789012345678",
// "content": "如何设置应用访问限制?"
// }
// ],
// "is_active": true
// },
// {
// "content": "对话用户开启‘自动授权’",
// "title": "自动授权设置",
// "problem_list": [
// {
// "id": "d0e1f2a3-b4c5-6789-3456-890123456789",
// "content": "如何为对话用户开启自动授权?"
// }
// ],
// "is_active": true
// },
// {
// "content": "效果展示",
// "title": "效果验证",
// "problem_list": [
// {
// "id": "e1f2a3b4-c5d6-7890-4567-901234567890",
// "content": "如何查看应用配置后的效果?"
// }
// ],
// "is_active": true
// }
// ],
// "source_file_id": "019ddd41-45ef-7121-87c9-9f744aa12162"
// },
// {
// "name": "应用免登录配置.docx",
// "paragraphs": [
// {
// "content": "在钉钉开放平台创建应用并保存",
// "title": "创建应用",
// "problem_list": [
// {
// "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
// "content": "如何创建钉钉开放平台的应用?"
// },
// {
// "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
// "content": "创建应用后如何保存?"
// }
// ],
// "is_active": true
// },
// {
// "content": "添加网页应用",
// "title": "添加应用类型",
// "problem_list": [
// {
// "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
// "content": "如何添加网页应用类型?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置网页应用",
// "title": "配置网页应用",
// "problem_list": [
// {
// "id": "d4e5f6a7-b8c9-0123-def0-234567890123",
// "content": "配置网页应用需要填写哪些信息?"
// }
// ],
// "is_active": true
// },
// {
// "content": "安全设置",
// "title": "安全配置",
// "problem_list": [
// {
// "id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
// "content": "安全设置中的回调地址如何配置?"
// },
// {
// "id": "f6a7b8c9-d0e1-2345-f012-456789012345",
// "content": "安全设置需要开启哪些权限?"
// }
// ],
// "is_active": true
// },
// {
// "content": "发布",
// "title": "应用发布",
// "problem_list": [
// {
// "id": "a7b8c9d0-e1f2-3456-0123-567890123456",
// "content": "发布应用后需要做什么?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置登录认证",
// "title": "登录认证配置",
// "problem_list": [
// {
// "id": "b8c9d0e1-f2a3-4567-1234-678901234567",
// "content": "如何配置登录认证方式?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置访问限制",
// "title": "访问限制设置",
// "problem_list": [
// {
// "id": "c9d0e1f2-a3b4-5678-2345-789012345678",
// "content": "如何设置应用访问限制?"
// }
// ],
// "is_active": true
// },
// {
// "content": "对话用户开启‘自动授权’",
// "title": "自动授权设置",
// "problem_list": [
// {
// "id": "d0e1f2a3-b4c5-6789-3456-890123456789",
// "content": "如何为对话用户开启自动授权?"
// }
// ],
// "is_active": true
// },
// {
// "content": "效果展示",
// "title": "效果验证",
// "problem_list": [
// {
// "id": "e1f2a3b4-c5d6-7890-4567-901234567890",
// "content": "如何查看应用配置后的效果?"
// }
// ],
// "is_active": true
// }
// ],
// "source_file_id": "019ddd41-45ef-7121-87c9-9f744aa12162"
// }
// ]curl --location --globoff --request PUT '{{Host}}/admin/api/workspace/default/knowledge/019c0dbf-778f-7e82-8a4c-c6f0c9b6c2f7/document/batch_create' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '// 配合"分段文档"API格式示例
[
{
"name": "测试分段.docx",
"paragraphs": [
{
"content": "\n正文你好",
"title": "你好",
"is_active": true
},
],
"source_file_id": "019f208f-dbfb-7f30-b84a-0dbf50a6a729"
}
]
// 完整格式示例
// [
// {
// "name": "应用免登录配置.docx",
// "paragraphs": [
// {
// "content": "在钉钉开放平台创建应用并保存",
// "title": "创建应用",
// "problem_list": [
// {
// "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
// "content": "如何创建钉钉开放平台的应用?"
// },
// {
// "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
// "content": "创建应用后如何保存?"
// }
// ],
// "is_active": true
// },
// {
// "content": "添加网页应用",
// "title": "添加应用类型",
// "problem_list": [
// {
// "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
// "content": "如何添加网页应用类型?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置网页应用",
// "title": "配置网页应用",
// "problem_list": [
// {
// "id": "d4e5f6a7-b8c9-0123-def0-234567890123",
// "content": "配置网页应用需要填写哪些信息?"
// }
// ],
// "is_active": true
// },
// {
// "content": "安全设置",
// "title": "安全配置",
// "problem_list": [
// {
// "id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
// "content": "安全设置中的回调地址如何配置?"
// },
// {
// "id": "f6a7b8c9-d0e1-2345-f012-456789012345",
// "content": "安全设置需要开启哪些权限?"
// }
// ],
// "is_active": true
// },
// {
// "content": "发布",
// "title": "应用发布",
// "problem_list": [
// {
// "id": "a7b8c9d0-e1f2-3456-0123-567890123456",
// "content": "发布应用后需要做什么?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置登录认证",
// "title": "登录认证配置",
// "problem_list": [
// {
// "id": "b8c9d0e1-f2a3-4567-1234-678901234567",
// "content": "如何配置登录认证方式?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置访问限制",
// "title": "访问限制设置",
// "problem_list": [
// {
// "id": "c9d0e1f2-a3b4-5678-2345-789012345678",
// "content": "如何设置应用访问限制?"
// }
// ],
// "is_active": true
// },
// {
// "content": "对话用户开启‘自动授权’",
// "title": "自动授权设置",
// "problem_list": [
// {
// "id": "d0e1f2a3-b4c5-6789-3456-890123456789",
// "content": "如何为对话用户开启自动授权?"
// }
// ],
// "is_active": true
// },
// {
// "content": "效果展示",
// "title": "效果验证",
// "problem_list": [
// {
// "id": "e1f2a3b4-c5d6-7890-4567-901234567890",
// "content": "如何查看应用配置后的效果?"
// }
// ],
// "is_active": true
// }
// ],
// "source_file_id": "019ddd41-45ef-7121-87c9-9f744aa12162"
// },
// {
// "name": "应用免登录配置.docx",
// "paragraphs": [
// {
// "content": "在钉钉开放平台创建应用并保存",
// "title": "创建应用",
// "problem_list": [
// {
// "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
// "content": "如何创建钉钉开放平台的应用?"
// },
// {
// "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
// "content": "创建应用后如何保存?"
// }
// ],
// "is_active": true
// },
// {
// "content": "添加网页应用",
// "title": "添加应用类型",
// "problem_list": [
// {
// "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
// "content": "如何添加网页应用类型?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置网页应用",
// "title": "配置网页应用",
// "problem_list": [
// {
// "id": "d4e5f6a7-b8c9-0123-def0-234567890123",
// "content": "配置网页应用需要填写哪些信息?"
// }
// ],
// "is_active": true
// },
// {
// "content": "安全设置",
// "title": "安全配置",
// "problem_list": [
// {
// "id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
// "content": "安全设置中的回调地址如何配置?"
// },
// {
// "id": "f6a7b8c9-d0e1-2345-f012-456789012345",
// "content": "安全设置需要开启哪些权限?"
// }
// ],
// "is_active": true
// },
// {
// "content": "发布",
// "title": "应用发布",
// "problem_list": [
// {
// "id": "a7b8c9d0-e1f2-3456-0123-567890123456",
// "content": "发布应用后需要做什么?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置登录认证",
// "title": "登录认证配置",
// "problem_list": [
// {
// "id": "b8c9d0e1-f2a3-4567-1234-678901234567",
// "content": "如何配置登录认证方式?"
// }
// ],
// "is_active": true
// },
// {
// "content": "配置访问限制",
// "title": "访问限制设置",
// "problem_list": [
// {
// "id": "c9d0e1f2-a3b4-5678-2345-789012345678",
// "content": "如何设置应用访问限制?"
// }
// ],
// "is_active": true
// },
// {
// "content": "对话用户开启‘自动授权’",
// "title": "自动授权设置",
// "problem_list": [
// {
// "id": "d0e1f2a3-b4c5-6789-3456-890123456789",
// "content": "如何为对话用户开启自动授权?"
// }
// ],
// "is_active": true
// },
// {
// "content": "效果展示",
// "title": "效果验证",
// "problem_list": [
// {
// "id": "e1f2a3b4-c5d6-7890-4567-901234567890",
// "content": "如何查看应用配置后的效果?"
// }
// ],
// "is_active": true
// }
// ],
// "source_file_id": "019ddd41-45ef-7121-87c9-9f744aa12162"
// }
// ]'{}