メインコンテンツへスキップ
POST
/
hub_collaborations
Python
client.hub_collaborations.create_hub_collaboration_v2025_r0(
    CreateHubCollaborationV2025R0Hub(id=hub.id),
    CreateHubCollaborationV2025R0AccessibleBy(type="user", id=user.id),
    "viewer",
)
{
  "id": "12345678",
  "type": "hub_collaboration",
  "hub": {
    "id": "12345",
    "type": "hubs"
  },
  "accessible_by": {
    "id": "11446498",
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "role": "editor",
  "status": "accepted",
  "acceptance_requirements_status": {
    "terms_of_service_requirement": {
      "is_accepted": true,
      "terms_of_service": {
        "id": "11446498",
        "type": "terms_of_service"
      }
    },
    "strong_password_requirement": {
      "enterprise_has_strong_password_required_for_external_users": true,
      "user_has_strong_password": true
    },
    "two_factor_authentication_requirement": {
      "enterprise_has_two_factor_auth_enabled": true,
      "user_has_two_factor_authentication_enabled": true
    }
  }
}

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 SDKのバージョニング戦略について詳しく学ぶ。」

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

ヘッダー

box-version
enum<string>
必須

Version header.

利用可能なオプション:
2025.0

ボディ

application/json

新しいBox Hubコラボレーションを作成するためのリクエスト本文。

hub
Box Hubsの参照 · object
必須

Box Hubsの参照。

accessible_by
object
必須

その項目へのアクセス権限を取得するユーザーまたはグループ。

role
string
必須

Box Hubに付与されるアクセスレベル。使用可能な値はeditorviewerco-ownerです。

:

"editor"

レスポンス

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

Box Hubコラボレーションオブジェクトは、特定のロールによって定義される権限を含んだBox Hubへのアクセス権限をユーザーまたはグループに付与します。

id
string
必須

このコラボレーションの一意の識別子。

:

"12345678"

type
enum<string>
必須

値は常にhub_collaborationになります。

利用可能なオプション:
hub_collaboration
:

"hub_collaboration"

hub
Box Hub (Base) · object

最も基本的なBox HubのBase版の表示。

accessible_by
Box Hubコラボレーションユーザー · object

ユーザーのMini版の表示は、ステータスがpendingの場合にのみ返すことができます。

role
string

Box Hubに付与されるアクセスレベル。使用可能な値はeditorviewerco-ownerです。

:

"editor"

status
enum<string>

コラボレーション招待のステータス。ステータスがpendingの場合、loginnameは空の文字列を返します。

利用可能なオプション:
accepted,
pending,
rejected
:

"accepted"

acceptance_requirements_status
object