Documentation Index Fetch the complete documentation index at: https://developer.box.com/llms.txt
Use this file to discover all available pages before exploring further.
既存のBox Hubを更新するには、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
Node/TypeScript v10
Python v10
.NET v10
Swift v10
Java v10
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 いいえ コラボレーションが企業内に制限されているかどうか。
成功したレスポンスでは、更新されたオブジェクトが返されます。