The GET /files operation can be used to return information for all files in a project.
Optionally you can add one or more of the following query parameters.
The filter query parameters will filter the results to only include files that match all filter parameters.
Request throttling
This endpoint is intended for data analytics and exploration purposes. It is not designed to support high-throughput data retrieval.
Please note that this endpoint is subject to the new throttling policy, which imposes limits on both request rate and concurrency.
For more details, please refer to the Files resource documentation.
Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
query Parameters
limit
integer [ 1 .. 1000 ]
Default: 100
Limits the number of results to be returned. The maximum results returned by the server is 1000 even if you specify a higher limit.
Only include files that have a related asset in a subtree rooted at any of these assetIds (including the roots given). If the total size of the given subtrees exceeds 100,000 assets, an error will be returned.
Only include files that have a related asset in a subtree rooted at any of these assetExternalIds (including the roots given). If the total size of the given subtrees exceeds 100,000 assets, an error will be returned.
Filter by this (case-sensitive) prefix for the external ID.
Example: externalIdPrefix=my.known.prefix
uploaded
boolean
Whether or not the actual file is uploaded. This field is returned only by the API, it has no effect in a post body.
Example: uploaded=true
partition
string
Splits the data set into N partitions.
The attribute is specified as a "M/N" string, where M is a natural number in the interval of [1, N].
You need to follow the cursors within each partition in order to receive all the data.
The maximum number of allowed partitions (N) is 10.
Cognite rejects requests if you specify more than 10 partitions.
When Cognite enforces this behavior, the requests result in a 400 Bad Request status.
Example: partition=1/3
Responses
200
The response for a successful files/list operation