Batch upload knowledge base files
Use this OpenAPI operation to upload multiple files to a knowledge base.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition, Enterprise Standard Edition |
Service endpoints
Get the service endpoint and replace {domain} in the API request syntax with your endpoint.
Authorization information
|
Product |
Resource |
Required permissions |
|
Qoder CN |
knowledge base file |
read/write |
Request syntax
POST https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBases/{kbId}/files/batchUpload
Request |
Enterprise Standard EditionExample
Enterprise Dedicated EditionExample
|
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 4. Getting the Organization ID. |
|
|
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 code center.