メインコンテンツへスキップ
GET
/
enterprise_hubs
cURL
curl --request GET \
  --url https://api.box.com/2.0/enterprise_hubs \
  --header 'Authorization: Bearer <token>' \
  --header 'box-version: <box-version>'
{
  "entries": [
    {
      "id": "12345",
      "type": "hubs",
      "title": "Contracts",
      "description": "All the contracts for the company.",
      "created_at": "2012-12-12T10:53:43Z",
      "updated_at": "2012-12-12T10:53:43Z",
      "created_by": {
        "id": "11446498",
        "type": "user",
        "name": "Aaron Levie",
        "login": "ceo@example.com"
      },
      "updated_by": {
        "id": "11446498",
        "type": "user",
        "name": "Aaron Levie",
        "login": "ceo@example.com"
      },
      "view_count": 506,
      "is_ai_enabled": true,
      "is_collaboration_restricted_to_enterprise": true,
      "can_non_owners_invite": true,
      "can_shared_link_be_created": true
    }
  ],
  "limit": 1000,
  "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"
}
Box SDKのバージョニング戦略について詳しく学ぶ。」

Authorizations

Authorization
string
header
required

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

Headers

box-version
enum<string>
required

Version header.

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

Query Parameters

query
string

Box Hubを検索するためのクエリ文字列。

sort
string
default:relevance

結果の並べ替えに使用するフィールド。使用可能な値には、nameupdated_atlast_accessed_atview_countrelevanceがあります。デフォルトはrelevanceです。

direction
enum<string>

結果を並べ替える方向。アルファベットの昇順 (ASC) または降順 (DESC) のいずれかを指定できます。

利用可能なオプション:
ASC,
DESC
marker
string

結果が返される開始位置のマーカー。マーカーベースのページネーションを使用している場合に使用されます。

limit
integer<int64>

返す項目の1ページあたりの最大数。

必須範囲: x <= 1000

Response

指定したユーザーまたは企業のすべてのBox Hubを返します。

Hubのページ割りされたリスト。 マーカーベースのページネーションについて説明しているAPIレスポンスの部分。

entries
Box Hub · object[]

Hubのリスト。

limit
integer<int64>

これらのエントリで使用された制限値。許容される最大値を超えていない限り、クエリパラメータのlimitと等しくなります。最大値はAPIによって異なります。

Example:

1000

next_marker
string | null

次の検索結果ページの開始場所のマーカー。

Example:

"JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"