Get icon
Required capabilities:
filesAcl:READOr
dataModelsAcl:READ(scope spaceId:cdf_cdm) anddataModelInstancesAcl:READ
The GET /files/icon operation can be used to get an image representation of a file.
Either id or externalId must be provided as a query parameter (but not both). Supported file formats:
- Normal jpeg and png files are currently fully supported.
- Other image file formats might work, but continued support for these are not guaranteed.
- Currently only supporting thumbnails for image files. Attempts to get icon for unsupported files will result in status 400.
Request throttling
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.
Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
Query Parameters
A server-generated ID for the object.
1 <= x <= 9007199254740991The external ID provided by the client. Must be unique for the resource type.
255"my.known.id"
1 - 43^[a-zA-Z][a-zA-Z0-9_-]{0,41}[a-zA-Z0-9]?$1 - 255^[a-zA-Z]([a-zA-Z0-9_]{0,253}[a-zA-Z0-9])?$Response
Thumbnail image (JPEG)
The response is of type file.