メインコンテンツへスキップ
POST
/
collaboration_whitelist_entries
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"
     }'
{
  "id": "11446498",
  "type": "collaboration_whitelist_entry",
  "domain": "example.com",
  "direction": "both",
  "enterprise": {
    "id": "11446498",
    "type": "enterprise",
    "name": "Acme Inc."
  },
  "created_at": "2012-12-12T10:53:43-08:00"
}
このリソースは、バージョン2024.0のエンドポイントで使用されています。 詳細については、 Box APIのバージョン管理を参照してください。Box SDKのバージョニング戦略について詳しく学ぶ。」

Authorizations

Authorization
string
header
required

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

Body

application/json
domain
string
required

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

Example:

"example.com"

direction
enum<string>
required

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

利用可能なオプション:
inbound,
outbound,
both
Example:

"inbound"

Response

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

ユーザーが社内のファイルやフォルダでコラボレーションできる (またはコラボレーションできない) 承認済みドメインを表すエントリ。

id
string

このエントリの一意の識別子。

Example:

"11446498"

type
enum<string>

値は常にcollaboration_whitelist_entryになります。

利用可能なオプション:
collaboration_whitelist_entry
Example:

"collaboration_whitelist_entry"

domain
string

許可リストに登録されるドメイン。

Example:

"example.com"

direction
enum<string>

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

利用可能なオプション:
inbound,
outbound,
both
Example:

"both"

enterprise
Enterprise · object

このリストが適用される企業。

created_at
string<date-time>

エントリが作成された日時。

Example:

"2012-12-12T10:53:43-08:00"