Exempts a user from the restrictions set out by the allowed list of domains for collaborations.
The user to exempt.
23522323
The ID of the user to exempt.
Returns a new exemption entry.
An unexpected client error.
curl -i -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"
}
}'
String userID = "12345";
BoxCollaborationWhitelistExemptTarget.create(api, userID);
user = client.user(user_id='11111')
exemption = client.collaboration_whitelist().add_exemption(user)
client.collaborationWhitelist.addExemption('5678', callback);
{
"id": 11446498,
"type": "collaboration_whitelist",
"created_at": "2012-12-12T10:53:43-08:00",
"enterprise": {
"id": 11446498,
"type": "enterprise",
"name": "Acme Inc."
},
"modified_at": "2012-12-12T10:53:43-08:00",
"user": {
"id": 11446498,
"type": "enterprise",
"name": "Acme Inc."
}
}