Box Developerドキュメント
ベータ

Hubを作成

post
https://api.box.com/2.0
/hubs

新しいHubを作成します。

リクエスト

bearer [ACCESS_TOKEN]
application/json

リクエストヘッダー

stringヘッダー内必須

Version header.

次の値に固定: 2025.0

リクエスト本文

string本文内省略可能
"This is a description of the Hub."

Hubの説明。

string本文内必須
"Hub Title"
50

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

レスポンス

application/jsonHub

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

リクエストパラメータのいずれかが無効な場合に返されます。

ユーザーにHubを作成するための適切な権限がない場合にエラーを返します。

予期しないクライアントエラー。

post
Hubを作成
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

TypeScript Gen
await client.hubs.createHubV2025R0({
  title: hubTitle,
  description: hubDescription,
} satisfies HubCreateRequestV2025R0);
Python Gen
client.hubs.create_hub_v2025_r0(hub_title, description=hub_description)
.NET Gen
await client.Hubs.CreateHubV2025R0Async(requestBody: new HubCreateRequestV2025R0(title: hubTitle) { Description = hubDescription });

レスポンスの例

{
  "id": "12345",
  "type": "hubs",
  "can_non_owners_invite": true,
  "can_shared_link_be_created": true,
  "created_at": "2012-12-12T10:53:43Z",
  "created_by": {
    "id": "11446498",
    "type": "user",
    "login": "ceo@example.com",
    "name": "Aaron Levie"
  },
  "description": "All the contracts for the company.",
  "is_ai_enabled": true,
  "is_collaboration_restricted_to_enterprise": true,
  "title": "Contracts",
  "updated_at": "2012-12-12T10:53:43Z",
  "updated_by": {
    "id": "11446498",
    "type": "user",
    "login": "ceo@example.com",
    "name": "Aaron Levie"
  },
  "view_count": 506
}