許可されたコラボレーションドメインのリストにドメインを追加

post
https://api.box.com/2.0
/collaboration_whitelist_entries

コラボレーションが許可されているドメインのリストに新しいエントリを作成します。

リクエスト

bearer [ACCESS_TOKEN]
application/json

リクエスト本文

string本文内必須
"inbound"

コラボレーションを許可する方向。

次の値のいずれか1つ: inbound,outbound,both

string本文内必須
"example.com"

許可されたドメインのリストに追加するドメイン。

レスポンス

許可されたドメインのリストに新しいエントリを返します。

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

post
許可されたコラボレーションドメインのリストにドメインを追加
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

cURL
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"
     }'
.NET
BoxCollaborationWhitelistEntry entry = await client.CollaborationWhitelistManager.AddCollaborationWhitelistEntryAsync(
    "example.com",
    "both"
);
Node
client.collaborationAllowlist.addDomain('test.com', client.collaborationAllowlist.directions.INBOUND, callback);

レスポンスの例

{
  "id": "11446498",
  "type": "collaboration_whitelist_entry",
  "created_at": "2012-12-12T10:53:43-08:00",
  "direction": "both",
  "domain": "example.com",
  "enterprise": {
    "id": "11446498",
    "type": "enterprise",
    "name": "Acme Inc."
  }
}