Creates a new entry in the list of allowed domains to allow collaboration for.
"inbound"
The direction in which to allow collaborations.
Value is one of inbound
,outbound
,both
"example.com"
The domain to add to the list of allowed domains.
Returns a new entry on the list of allowed domains.
An unexpected client error.
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"
}'
await client.collaborationAllowlistEntries.createCollaborationWhitelistEntry({
direction:
'inbound' as CreateCollaborationWhitelistEntryRequestBodyDirectionField,
domain: domain,
} satisfies CreateCollaborationWhitelistEntryRequestBody);
client.collaboration_allowlist_entries.create_collaboration_whitelist_entry(
domain, CreateCollaborationWhitelistEntryDirection.INBOUND.value
)
await client.CollaborationAllowlistEntries.CreateCollaborationWhitelistEntryAsync(requestBody: new CreateCollaborationWhitelistEntryRequestBody(direction: CreateCollaborationWhitelistEntryRequestBodyDirectionField.Inbound, domain: domain));
try await client.collaborationAllowlistEntries.createCollaborationWhitelistEntry(requestBody: CreateCollaborationWhitelistEntryRequestBody(direction: CreateCollaborationWhitelistEntryRequestBodyDirectionField.inbound, domain: domain))
BoxCollaborationWhitelistEntry entry = await client.CollaborationWhitelistManager.AddCollaborationWhitelistEntryAsync(
"example.com",
"both"
);
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."
}
}