cURL
curl --request POST \ --url http://localhost:5300/api/v1/knowledge/bases/{kb_uuid}/files \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "file_id": "<string>", "parser_plugin_id": "<string>" } '
{ "code": 0, "data": { "task_id": "<string>" } }
将已上传的文件关联到知识库并开始解析。先通过 /api/v1/files/documents 上传文件获取 file_id。
已上传的文件 ID
指定的解析器插件 ID(可选)
成功
0
Show child attributes