メインコンテンツへスキップ
GET
/
collections
/
{collection_id}
Python
client.collections.get_collection_by_id(collections.entries[0].id)
{
  "id": "11446498",
  "type": "collection",
  "name": "Favorites",
  "collection_type": "favorites"
}
このリソースは、バージョン2024.0のエンドポイントで使用されています。 詳細については、 Box APIのバージョン管理を参照してください。Box SDKのバージョニング戦略について詳しく学ぶ。」

承認

Authorization
string
header
必須

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

パスパラメータ

collection_id
string
必須

コレクションのID。

レスポンス

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

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

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

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

id
string

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

:

"11446498"

type
enum<string>

値は常にcollectionになります。

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

"collection"

name
enum<string>

コレクションの名前。

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

"Favorites"

collection_type
enum<string>

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

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

"favorites"