Skip to content
.seventhings.com

Prefill your credentials

Fill in your non-secret values to have them appear in the examples below. Stored locally in your browser.

Get a file resource thumbnail

GET
/customer-api/v1/file/{fileUuid}/thumbnail
curl --request GET \
--url 'https://your-instance.seventhings.com/customer-api/v1/file/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/thumbnail?width=300&height=200' \
--header 'Authorization: Bearer <token>'

Get a file resource thumbnail, by default 150 x 100 pixels. With width and height any other size within the limits is created on first request and reused afterwards. The picture is scaled to fit the requested box and keeps its aspect ratio. A file keeps a limited number of sizes besides the default one; once it has that many, a further new size is answered with 422, while the stored sizes and the default stay available.

fileUuid
required
string format: uuid
width
integer
>= 1 <= 2000

Width of the thumbnail in pixels. Has to be sent together with height. The first request for a size creates the thumbnail and stores it; every later request for the same size hands out the stored one.

Example
300
height
integer
>= 1 <= 2000

Height of the thumbnail in pixels. Has to be sent together with width. Without both parameters the thumbnail is 150 x 100 pixels.

Example
200

The file resource thumbnail

Media typeapplication/octet-stream
string format: binary

Request body is missing or invalid or request data is invalid.

Access token is missing or invalid.

You are not permitted to perform the requested operation.

The requested resource could not be found.

The requested resource representation has no acceptable format.

The requested entry is not processable.

Internal Server Error.