Box Developerドキュメント
最新バージョン

Update Box Hub information by ID

put
https://api.box.com/2.0
/hubs/:hub_id

Updates a Box Hub. Can be used to change title, description, or Box Hub settings.

リクエスト

bearer [ACCESS_TOKEN]
application/json

リクエストヘッダー

stringヘッダー内必須

Version header.

次の値に固定: 2025.0

パスパラメータ

stringパス内必須
12345

Hubを表す一意の識別子。

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

リクエスト本文

boolean本文内省略可能
true

Indicates if non-owners can invite others to the Box Hub.

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

Description of the Box Hub.

boolean本文内省略可能
true

Indicates if AI features are enabled for the Box Hub.

boolean本文内省略可能
true

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

string本文内省略可能
"Hub Title"
50

Title of the Box Hub. It cannot be empty and should be less than 50 characters.

レスポンス

application/jsonBox Hub

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

Authorizationヘッダーで指定されているアクセストークンが認識されないか、指定されていない場合に返されます。

Hubが見つからない場合、またはユーザーにHubへのアクセス権限が与えられていない場合に返されます。

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

put
Update Box Hub information by ID
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

TypeScript Gen
await client.hubs.updateHubByIdV2025R0(hubId, {
  title: newHubTitle,
  description: newHubDescription,
} satisfies HubUpdateRequestV2025R0);
Python Gen
client.hubs.update_hub_by_id_v2025_r0(
    hub_id, title=new_hub_title, description=new_hub_description
)
.NET Gen
await client.Hubs.UpdateHubByIdV2025R0Async(hubId: hubId, requestBody: new HubUpdateRequestV2025R0() { Title = newHubTitle, Description = newHubDescription });

レスポンスの例

{
  "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
}