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

コラボレーションIDを指定してBox Hubコラボレーションを取得

get
https://api.box.com/2.0
/hub_collaborations/:hub_collaboration_id

コラボレーションIDを指定してBox Hubコラボレーションの詳細を取得します。

リクエスト

bearer [ACCESS_TOKEN]
application/json

リクエストヘッダー

stringヘッダー内必須

Version header.

次の値に固定: 2025.0

パスパラメータ

stringパス内必須
1234

HubコラボレーションのID。

レスポンス

Box Hubコラボレーションオブジェクトを返します。

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

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

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

get
コラボレーションIDを指定してBox Hubコラボレーションを取得
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

Box SDKのバージョン戦略の詳細については、 **こちら**を確認してください。


Node/TypeScript v10
await client.hubCollaborations.getHubCollaborationByIdV2025R0(
  createdCollaboration.id,
);
Python v10
client.hub_collaborations.get_hub_collaboration_by_id_v2025_r0(created_collaboration.id)
.NET v10
await client.HubCollaborations.GetHubCollaborationByIdV2025R0Async(hubCollaborationId: createdCollaboration.Id);
Swift v10
try await client.hubCollaborations.getHubCollaborationByIdV2025R0(hubCollaborationId: createdCollaboration.id)
Java v10
client.getHubCollaborations().getHubCollaborationByIdV2025R0(createdCollaboration.getId())

レスポンスの例

{
  "id": "12345678",
  "type": "hub_collaboration",
  "acceptance_requirements_status": {
    "strong_password_requirement": {
      "enterprise_has_strong_password_required_for_external_users": true,
      "user_has_strong_password": true
    },
    "terms_of_service_requirement": {
      "is_accepted": true,
      "terms_of_service": {
        "id": "11446498",
        "type": "terms_of_service"
      }
    },
    "two_factor_authentication_requirement": {
      "enterprise_has_two_factor_auth_enabled": true,
      "user_has_two_factor_authentication_enabled": true
    }
  },
  "accessible_by": {
    "id": "11446498",
    "type": "user",
    "login": "ceo@example.com",
    "name": "Aaron Levie"
  },
  "hub": {
    "id": "12345",
    "type": "hubs"
  },
  "role": "editor",
  "status": "accepted"
}