List knowledge base files
Lists files in a Qoder CN 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
|
Product |
Resource |
Required permission |
|
Qoder CN |
knowledge base file |
Read-only |
Request syntax
GET https://{domain}/oapi/v1/lingma/organizations/{organizationId}/knowledgeBases/{kbId}/files
Request |
Enterprise standard editionList all files
Filter by name
Sort by time added
Enterprise dedicated editionList all files
Filter by name
Sort by time added
|
Request Headers (Headers) |
|
|
x-yunxiao-token Personal Access Token. You can refer to Personal Access Token to obtain it. Example: pt-0fh3****0fbG_35af****0484. |
|
Request Parameters |
|
|
organizationId Organization ID. You can go to Organization Management Console's Basic Information pageto obtain organizationId. |
|
|
kbId Knowledge base ID. For more information, see List Knowledge Bases to obtain the knowledge base ID. |
|
|
query Fuzzy search by file name. |
|
|
orderBy Sort field, The following sort fields are supported:
|
|
|
sort Sort order:
|
|
|
page Current page. |
|
|
perPage Maximum number of data entries per page, Value range: |
Return parameters |
Response example
|
|
fileId The file ID. |
|
|
filePath The file path. |
|
|
fileSize The file size. |
|
|
fileState The file state. |
|
|
file_md5 The MD5 hash of the file content. This hash uniquely identifies the file. |
|
|
filename The file name. |
|
|
gmtAdded The time when the file was added. |
|
|
gmtCreated The time when the file was created. |
|
|
gmtModified The time when the file was last modified. |
|
|
kdId The knowledge base ID. |
|
|
organizationId The organization ID. |
|
|
uploadUser The user who added the file. |
Response header
|
Parameter |
Description |
Example value |
|
x-next-page |
Next page |
1 |
|
x-page |
Current page |
1 |
|
x-per-page |
Page size |
20 |
|
x-prev-page |
Previous page |
1 |
|
x-total |
Total count |
9 |
|
x-total-pages |
Total number of pages |
1 |
Error codes
For more information, see Error code center.