POST
上传文件
/knowledge将文件上传到知识库。文件会自动进行文本提取和向量化处理。
请求体
multipart/form-data必填
{
file*:string (binary)The file to upload
folder_id:stringFolder to upload to
description:stringFile description
tags:stringComma-separated tags
}
代码示例
curl -X POST "https://api.qamaq.io/api/v1/knowledge" \
-H "Authorization: Bearer qmq_your_api_key"响应
201File uploaded successfully
Response Body
{
id:stringname:stringstatus:stringmessage:string}