List knowledge base files
Lists files in a Lingma knowledge base.
|
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 |
|
Lingma |
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 toPersonal Access Tokento obtain it。 Example:pt-0fh3****0fbG_35af****0484。 |
|
Request Parameters |
|
|
organizationId OrganizationID。You can go toOrganization Management Console'sBasic Information pageto obtainorganizationId。 |
|
|
kbId Knowledge base ID。For more information, seeList Knowledge Basesto obtain the knowledge baseID。 |
|
|
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.