メインコンテンツへスキップ
GET
/
collections
/
{collection_id}
cURL
curl --request GET \
  --url https://api.box.com/2.0/collections/{collection_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "11446498",
  "type": "collection",
  "name": "Favorites",
  "collection_type": "favorites"
}
このリソースは、バージョン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

collection_id
string
required

コレクションのID。

Response

コレクション内の項目の配列を返します。

ファイルやフォルダなどの項目のコレクション。

現時点で利用可能なコレクションは、favoritesコレクションのみです。

コレクションのコンテンツは、フォルダのコンテンツと同じ方法で調べることができます。

id
string

このコレクションの一意の識別子。

Example:

"11446498"

type
enum<string>

値は常にcollectionになります。

利用可能なオプション:
collection
Example:

"collection"

name
enum<string>

コレクションの名前。

利用可能なオプション:
Favorites
Example:

"Favorites"

collection_type
enum<string>

コレクションのタイプ。これは、コレクションの視覚効果を適切に決定するために使用されます。

利用可能なオプション:
favorites
Example:

"favorites"