- Get Box Hub collaborations
- Create Box Hub collaboration
- Get Box Hub collaboration by collaboration ID
- Update Box Hub collaboration
- Remove Box Hub collaboration
Retrieves all collaborations for a Box Hub.
This operation is performed by calling function getHubCollaborationsV2025R0.
See the endpoint docs at API Reference.
await client.hubCollaborations.getHubCollaborationsV2025R0({
hubId: hub.id,
} satisfies GetHubCollaborationsV2025R0QueryParams);- queryParams
GetHubCollaborationsV2025R0QueryParams- Query parameters of getHubCollaborationsV2025R0 method
- optionalsInput
GetHubCollaborationsV2025R0OptionalsInput
This function returns a value of type HubCollaborationsV2025R0.
Retrieves the collaborations associated with the specified Box Hub.
Adds a collaboration for a single user or a single group to a Box Hub.
Collaborations can be created using email address, user IDs, or group IDs.
This operation is performed by calling function createHubCollaborationV2025R0.
See the endpoint docs at API Reference.
await client.hubCollaborations.createHubCollaborationV2025R0({
hub: new HubCollaborationCreateRequestV2025R0HubField({ id: hub.id }),
accessibleBy: {
type: 'user',
id: user.id,
} satisfies HubCollaborationCreateRequestV2025R0AccessibleByField,
role: 'viewer',
} satisfies HubCollaborationCreateRequestV2025R0);- requestBody
HubCollaborationCreateRequestV2025R0- Request body of createHubCollaborationV2025R0 method
- optionalsInput
CreateHubCollaborationV2025R0OptionalsInput
This function returns a value of type HubCollaborationV2025R0.
Returns a new Box Hub collaboration object.
Retrieves details for a Box Hub collaboration by collaboration ID.
This operation is performed by calling function getHubCollaborationByIdV2025R0.
See the endpoint docs at API Reference.
await client.hubCollaborations.getHubCollaborationByIdV2025R0(
createdCollaboration.id,
);- hubCollaborationId
string- The ID of the hub collaboration. Example: "1234"
- optionalsInput
GetHubCollaborationByIdV2025R0OptionalsInput
This function returns a value of type HubCollaborationV2025R0.
Returns a Box Hub collaboration object.
Updates a Box Hub collaboration. Can be used to change the Box Hub role.
This operation is performed by calling function updateHubCollaborationByIdV2025R0.
See the endpoint docs at API Reference.
await client.hubCollaborations.updateHubCollaborationByIdV2025R0(
createdCollaboration.id,
{ role: 'editor' } satisfies HubCollaborationUpdateRequestV2025R0,
);- hubCollaborationId
string- The ID of the hub collaboration. Example: "1234"
- requestBody
HubCollaborationUpdateRequestV2025R0- Request body of updateHubCollaborationByIdV2025R0 method
- optionalsInput
UpdateHubCollaborationByIdV2025R0OptionalsInput
This function returns a value of type HubCollaborationV2025R0.
Returns an updated Box Hub collaboration object.
Deletes a single Box Hub collaboration.
This operation is performed by calling function deleteHubCollaborationByIdV2025R0.
See the endpoint docs at API Reference.
await client.hubCollaborations.deleteHubCollaborationByIdV2025R0(
createdCollaboration.id,
);- hubCollaborationId
string- The ID of the hub collaboration. Example: "1234"
- optionalsInput
DeleteHubCollaborationByIdV2025R0OptionalsInput
This function returns a value of type undefined.
A blank response is returned if the Box Hub collaboration was successfully deleted.