Create whitelist exemption

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

Creates a collaboration whitelist entry exemption, specifying a user that is exempted from the whitelist.

Request

application/json

Request Body

objectin body

The user to exempt.

stringin bodyrequired
23522323

The ID of the user to exempt.

Response

Returns a new collaboration whitelist entry.

You can now try out some of our APIs live, right here in the documentation.
Log In

Request Example

cURL
curl -X POST https://api.box.com/2.0/collaboration_whitelist_exempt_targets \
     -H "Authorization: Bearer <ACCESS_TOKEN>" \
     -H "Content-Type: application/json" \
     -d '{
       "user": {
         "id": "23522323"
       }
     }'
.NET
string userId = "22222";
BoxCollaborationWhitelistTargetEntry exemptUser = await client.CollaborationWhitelistManager
    .AddCollaborationWhitelistExemptUserAsync(userId);
Java
String userID = "12345";
BoxCollaborationWhitelistExemptTarget.create(api, userID);
Python
user = client.user(user_id='11111')
exemption = client.collaboration_whitelist().add_exemption(user)
Node
client.collaborationWhitelist.addExemption('5678', callback);

Response Example

{
  "id": 11446498,
  "type": "collaboration_whitelist",
  "enterprise": {
    "id": 11446498,
    "type": "enterprise",
    "name": "Acme Inc."
  },
  "user": {
    "id": 11446498,
    "type": "enterprise",
    "name": "Acme Inc."
  },
  "created_at": "2012-12-12T10:53:43-08:00",
  "modified_at": "2012-12-12T10:53:43-08:00"
}