メインコンテンツへスキップ
GET
/
files
/
{file_id}
/
thumbnail.
{extension}
cURL
curl -i -X GET "https://api.box.com/2.0/files/12345/thumbnail.png" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
"<string>"
このリソースは、バージョン2024.0のエンドポイントで使用されています。 詳細については、 Box APIのバージョン管理を参照してください。Box SDKのバージョニング戦略について詳しく学ぶ。」

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

file_id
string
required

ファイルを表す一意の識別子。

ファイルIDを確認するには、ウェブアプリケーションでファイルにアクセスして、URLからIDをコピーします。たとえば、URLがhttps://*.app.box.com/files/123の場合、file_id123です。

extension
enum<string>
required

サムネイルのファイル形式。

利用可能なオプション:
png,
jpg

Query Parameters

min_height
integer

サムネイルの高さの最小値。

必須範囲: 32 <= x <= 320
min_width
integer

サムネイルの幅の最小値。

必須範囲: 32 <= x <= 320
max_height
integer

サムネイルの高さの最大値。

必須範囲: 32 <= x <= 320
max_width
integer

サムネイルの幅の最大値。

必須範囲: 32 <= x <= 320

Response

サムネイルを作成できる場合は、レスポンスの本文内でサムネイルデータが返されます。

サムネイル。