List Source Files
Lists the buckets and files an online drive source can see at its provider.
The source must be a connector source with metadata.providerKind of online-drive.
To open a returned folder, pass its id as prefix. When a bucket’s is_truncated is true, pass its continuation_token as continuationToken to read the next page.
1 min read
get/knowledge-fs/spaces/{knowledge_base_id}/sources/{source_id}/files
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/sources/{source_id}/files
Authorization
Path parameters
Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.Source ID. From List Sources.
Query parameters
Bucket to browse, as named by the provider. Omit it to use the bucket configured on the source.
To open a folder, send its returned
id as prefix. Do not send its display name or construct a path. Omit this parameter to use the source's configured starting location.A bucket's
continuation_token from the previous response. Keep the same prefix and bucket selection. When no bucket was selected and the response's bucket is null, omit the bucket parameter.Length: 1–4096
Files per bucket per response. When omitted, the source's configured value applies, or 20 if none is configured.
Range: 1–1000
Responses
application/json
Buckets with their files.