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": "document_abc123.pdf" } '
{ "code": 0, "msg": "ok", "data": { "task_id": "<string>" } }
Add uploaded file to knowledge base for processing
API Key authentication using X-API-Key header. Example: X-API-Key: lbk_your_api_key_here
X-API-Key: lbk_your_api_key_here
Knowledge Base UUID
File ID(从文件上传接口获取)
Addition successful
0
"ok"
表示 子属性