Use this OpenAPI operation to upload multiple files to a knowledge base.
|
Supported editions |
Enterprise Dedicated Edition |
Service endpoints
Get the service endpoint and replace {domain}
in the API request syntax with your
endpoint
.
Authorization information
Product | Resource | Required permissions |
Lingma | knowledge base file | read/write |
Request syntax
POST https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBases/{kbId}/files/batchUploadRequest | Example |
Request headers | |
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. | |
Request parameters | |
organizationId The organization ID. You can obtain the ID from the Basic Information page in the organization management console. | |
kbId The knowledge base ID. You can obtain this ID by calling the ListKnowledgeBases operation. | |
files The files to upload to the knowledge base.
|
Response | Example |
fileId The file ID. | |
operateUserId The ID of the operator. | |
success Indicates whether the individual file was uploaded successfully.
| |
failedMessage The error message. This parameter is returned only when success is false. |
Error codes
For more information, see Error codes.