Upload knowledge base document
upload_knowledge_base_document[Knowledge base] Upload and process a knowledge base document (multipart form-data).
Uploads a document to a knowledge base store and queues it for processing. Accepts the file either as multipart/form-data (binary file) or as application/json (base64 file).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The document file (binary). | |
| name | No | Document name (with extension). Falls back to the uploaded file name for multipart. | |
| merchant_id | No | Override merchant id (admin / sub-merchant only). | |
| knowledge_base_store_id | Yes | The knowledge base store to add the document to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| knowledge_base_id | Yes | Id of the created knowledge_base record. |