メインコンテンツへスキップ
既存のBox Hubを更新するには、Hub IDと変更するフィールドを指定してPUT /2.0/hubs/{hub_id}エンドポイントを呼び出します。タイトル、説明、AI設定、コラボレーションの制限を更新できます。
Box Hubs endpoints require the box-version: 2025.0 header. If you omit this header, the API returns a 400 error with the message Missing required box-version header. Supported API versions: [2025.0]. For more information, see Box API versioning strategy.

Hubを更新

curl -i -X PUT "https://api.box.com/2.0/hubs/HUB_ID" \
     -H "Authorization: Bearer <ACCESS_TOKEN>" \
     -H "box-version: 2025.0" \
     -H "Content-Type: application/json" \
     -d '{
       "title": "HR Hub",
       "description": "Updated description for HR policies and onboarding.",
       "is_ai_enabled": true
     }'
HUB_IDを実際のHub IDに置き換えます。リクエスト本文のフィールドは省略可能です。更新するフィールドのみを含めてください。

リクエスト本文のフィールド

フィールド必須説明
titlestringいいえBox Hubのタイトル。最大文字数は50文字です。
descriptionstringいいえBox Hubの説明。
is_ai_enabledbooleanいいえAI機能がHubに対して有効になっているかどうか。
is_collaboration_restricted_to_enterprisebooleanいいえコラボレーションが企業内に制限されているかどうか。
成功したレスポンスでは、更新されたHubオブジェクトが返されます。