メインコンテンツへスキップ
一般にコラボレーションの作成を制限している企業は、企業で作成されている可能性のあるコラボレーションのリストにexample.comなどのドメインを追加できます。
curl -i -X POST "https://api.box.com/2.0/collaboration_whitelist_entries" \
     -H "authorization: Bearer <ACCESS_TOKEN>" \
     -H "content-type: application/json" \
     -d '{
       "domain": "example.com",
       "direction": "inboud"
     }'
このエンドポイントには、コラボレーションを許可するdomainと、以下のように設定できるdirectionが必要です。
  • inbound: 外部ユーザーが企業のコンテンツでコラボレーションできるかどうか。
  • outbound: 企業の管理対象ユーザーが外部の企業で所有されているコンテンツでコラボレーションできるかどうか。
  • both: 上記の両方。
新しく許可されたドメインを設定する場合はbothパラメータを指定します。
curl -i -X POST "https://api.box.com/2.0/collaboration_whitelist_entries" \
     -H "authorization: Bearer <ACCESS_TOKEN>" \
     -H "content-type: application/json" \
     -d '{
       "domain": "example.com",
       "direction": "inboud"
     }'