メインコンテンツへスキップ
POST
/
hubs
/
{hub_id}
/
copy
cURL
curl --request POST \
  --url https://api.box.com/2.0/hubs/{hub_id}/copy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'box-version: <box-version>' \
  --data '
{
  "title": "Hub Title",
  "description": "This is a description of the Box Hub."
}
'
{
  "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
}
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

Path Parameters

hub_id
string
required

Hubを表す一意の識別子。

HubのIDを確認するには、ウェブアプリでこのHubにアクセスして、URLからIDをコピーします。たとえば、URLがhttps://*.app.box.com/hubs/123の場合、hub_id123です。

Body

application/json

Box Hubをコピーするためのリクエストのスキーマ。

title
string

Box Hubのタイトル。空にすることはできません。50文字未満で指定する必要があります。

Maximum string length: 50
Example:

"Hub Title"

description
string

Box Hubの説明。

Example:

"This is a description of the Box Hub."

Response

新しいHubオブジェクトを返します。

任意のBox Hubs APIエンドポイントからデフォルトで返されるBox HubのStandard版の表示。 最も基本的なBox HubのBase版の表示。

id
string
required

Box Hubを表す一意の識別子。

Box HubのIDを確認するには、ウェブアプリでBox Hubにアクセスして、URLからIDをコピーします。たとえば、URLがhttps://*.app.box.com/hubs/123の場合、hub_id123です。

Example:

"12345"

type
enum<string>
required

値は常にhubsになります。

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

"hubs"

title
string

Box Hubのタイトル。

Example:

"Contracts"

description
string

Box Hubの説明。最初の200文字が返されます。

Example:

"All the contracts for the company."

created_at
string<date-time>

このフォルダが作成された日時。ルートフォルダやごみ箱フォルダなど、一部のフォルダの場合、この値はnullになる場合があります。

Example:

"2012-12-12T10:53:43Z"

updated_at
string<date-time>

Box Hubが最後に更新された日時。

Example:

"2012-12-12T10:53:43Z"

created_by
ユーザー (Mini) · object

このBox Hubを作成したユーザー。

updated_by
ユーザー (Mini) · object

このBox Hubを最後に変更したユーザー。

view_count
integer<int32>

Box Hubの表示回数。

Example:

506

is_ai_enabled
boolean

AI機能がBox Hubに対して有効になっているかどうかを示します。

Example:

true

is_collaboration_restricted_to_enterprise
boolean

コラボレーションが企業に制限されているかどうかを示します。

Example:

true

can_non_owners_invite
boolean

所有者以外のユーザーが他のユーザーをBox Hubに招待できるかどうかを示します。

Example:

true

Box Hubに対して共有リンクを作成できるかどうかを示します。

Example:

true