Upload Doc By Form
知识库和文件管理
Docs Form Upload
Upload files via form
POST
Upload Doc By Form
Documentation Index
Fetch the complete documentation index at: https://docs.reportify.cn/llms.txt
Use this file to discover all available pages before exploring further.
同步上传文档
URL:/v1/docs/upload/form方法:
POSTContent-Type:
multipart/form-data
描述: 同步上传单篇报告文档至指定文件夹。
请求参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| file | str(file) | 文件。 |
| folder_id | str | 目标文件夹 ID。 |
| name | str | 文档名称。 |
| tags | str | 标签 (JSON 字符串)。 |
| metadatas | str | 元数据 (JSON 字符串)。 |
| published_at | str | 发布时间,格式为 millisecond timestamp 1712832000000。 |
响应参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| id | str | 文档唯一 ID |
| title | str | 文档标题 |
| original_url | str | 文档URL |
Authorizations
Enter your Bearer token
Body
multipart/form-data
Folder ID, if you do not pass it, use the default folder
File name, if you do not pass it, use the file name in the URL
metadatas json string, example: {"period": "2023Q4", "entities": ["companyA", "companyB"]}
Document release time, millisecond time stamp
Document tag list, json string, example: {"key": ["value1", "value2"]}
