box-node-sdk

CollaborationAllowlistEntriesManager

List allowed collaboration domains

Returns the list domains that have been deemed safe to create collaborations for within the current enterprise.

This operation is performed by calling function getCollaborationWhitelistEntries.

See the endpoint docs at API Reference.

await client.collaborationAllowlistEntries.getCollaborationWhitelistEntries();

Arguments

Returns

This function returns a value of type CollaborationAllowlistEntries.

Returns a collection of domains that are allowed for collaboration.

Add domain to list of allowed collaboration domains

Creates a new entry in the list of allowed domains to allow collaboration for.

This operation is performed by calling function createCollaborationWhitelistEntry.

See the endpoint docs at API Reference.

await client.collaborationAllowlistEntries.createCollaborationWhitelistEntry({
  direction:
    'inbound' as CreateCollaborationWhitelistEntryRequestBodyDirectionField,
  domain: domain,
} satisfies CreateCollaborationWhitelistEntryRequestBody);

Arguments

Returns

This function returns a value of type CollaborationAllowlistEntry.

Returns a new entry on the list of allowed domains.

Get allowed collaboration domain

Returns a domain that has been deemed safe to create collaborations for within the current enterprise.

This operation is performed by calling function getCollaborationWhitelistEntryById.

See the endpoint docs at API Reference.

await client.collaborationAllowlistEntries.getCollaborationWhitelistEntryById(
  newEntry.id!,
);

Arguments

Returns

This function returns a value of type CollaborationAllowlistEntry.

Returns an entry on the list of allowed domains.

Remove domain from list of allowed collaboration domains

Removes a domain from the list of domains that have been deemed safe to create collaborations for within the current enterprise.

This operation is performed by calling function deleteCollaborationWhitelistEntryById.

See the endpoint docs at API Reference.

await client.collaborationAllowlistEntries.deleteCollaborationWhitelistEntryById(
  entry.id!,
);

Arguments

Returns

This function returns a value of type undefined.

A blank response is returned if the entry was successfully deleted.