Upload a knowledge base file
Uploads a Qoder CN knowledge base file using OpenAPI.
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
|
Product |
Resource |
Required permissions |
|
Qoder CN |
knowledge base file |
Read-only |
Request syntax
POST https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBases/{kbId}/files
Request |
Enterprise Standard EditionUpload file
Enterprise Dedicated EditionUpload file
|
Request headers |
|
|
x-yunxiao-token Your personal access token. For more information, see access token. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
organizationId The ID of the organization. You can obtain the organizationId on the Basic Information page in the Organization Management Console. |
|
|
kbId The ID of the knowledge base. To obtain this ID, see List knowledge bases. |
|
|
name The name of the file. The file extension must match that of the uploaded file. |
|
|
file The file to upload. Add the file with the key |
Response parameters |
Successful response
Failed response
|
|
failedMessage The error message that is returned if the request fails. |
|
|
fileId The unique ID of the file. |
|
|
operateUserId The ID of the user who performed the operation. |
|
|
success Indicates whether the operation succeeded. |
Error codes
For more information, see Error code center.