メインコンテンツへスキップ
PUT
/
hub_collaborations
/
{hub_collaboration_id}
Python
client.hub_collaborations.update_hub_collaboration_by_id_v2025_r0(
    created_collaboration.id, role="editor"
)
{
  "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

パスパラメータ

hub_collaboration_id
string
必須

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

ボディ

application/json

既存のBox Hubコラボレーションを更新するためのリクエスト本文。

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