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:
This endpoint is a subject of the new throttling schema (limited request rate and concurrency). Please check Files resource description for more information.
Thumbnail image (JPEG)
The response for a failed request.
curl -i -X GET \ 'https://api.cognitedata.com/api/v1/projects/publicdata/files/icon?id=1&externalId=my.known.id&space=string&instanceExternalId=string' \ -H 'Authorization: Bearer <YOUR_OpenID Connect or OAuth2 token_HERE>'
{- "error": {
- "code": 401,
- "message": "Could not authenticate.",
- "missing": [
- { }
], - "duplicated": [
- { }
]
}
}