Retrieves all Box Hubs for requesting user.
This operation is performed by calling function getHubsV2025R0.
See the endpoint docs at API Reference.
await client.hubs.getHubsV2025R0({
scope: 'all',
sort: 'name',
direction: 'ASC' as GetHubsV2025R0QueryParamsDirectionField,
} satisfies GetHubsV2025R0QueryParams);
GetHubsV2025R0QueryParams
GetHubsV2025R0HeadersInput
undefined | CancellationToken
This function returns a value of type HubsV2025R0.
Returns all Box Hubs for the given user or enterprise.
Creates a new Box Hub.
This operation is performed by calling function createHubV2025R0.
See the endpoint docs at API Reference.
await client.hubs.createHubV2025R0({
title: hubTitle,
description: hubDescription,
} satisfies HubCreateRequestV2025R0);
HubCreateRequestV2025R0
CreateHubV2025R0OptionalsInputThis function returns a value of type HubV2025R0.
Returns a new Hub object.
Retrieves all Box Hubs for a given enterprise.
Admins or Hub Co-admins of an enterprise with GCM scope can make this call.
This operation is performed by calling function getEnterpriseHubsV2025R0.
See the endpoint docs at API Reference.
await client.hubs.getEnterpriseHubsV2025R0({
sort: 'name',
direction: 'ASC' as GetEnterpriseHubsV2025R0QueryParamsDirectionField,
} satisfies GetEnterpriseHubsV2025R0QueryParams);
GetEnterpriseHubsV2025R0QueryParams
GetEnterpriseHubsV2025R0HeadersInput
undefined | CancellationToken
This function returns a value of type HubsV2025R0.
Returns all Box Hubs for the given user or enterprise.
Retrieves details for a Box Hub by its ID.
This operation is performed by calling function getHubByIdV2025R0.
See the endpoint docs at API Reference.
await client.hubs.getHubByIdV2025R0(hubId);
string
https://*.app.box.com/hubs/123 the hub_id is 123. Example: “12345”GetHubByIdV2025R0OptionalsInputThis function returns a value of type HubV2025R0.
Returns a hub object.
Updates a Box Hub. Can be used to change title, description, or Box Hub settings.
This operation is performed by calling function updateHubByIdV2025R0.
See the endpoint docs at API Reference.
await client.hubs.updateHubByIdV2025R0(hubId, {
title: newHubTitle,
description: newHubDescription,
} satisfies HubUpdateRequestV2025R0);
string
https://*.app.box.com/hubs/123 the hub_id is 123. Example: “12345”HubUpdateRequestV2025R0
UpdateHubByIdV2025R0OptionalsInputThis function returns a value of type HubV2025R0.
Returns a Hub object.
Deletes a single Box Hub.
This operation is performed by calling function deleteHubByIdV2025R0.
See the endpoint docs at API Reference.
await client.hubs.deleteHubByIdV2025R0(hubId);
string
https://*.app.box.com/hubs/123 the hub_id is 123. Example: “12345”DeleteHubByIdV2025R0OptionalsInputThis function returns a value of type undefined.
A blank response is returned if the hub was successfully deleted.
Creates a copy of a Box Hub.
The original Box Hub will not be modified.
This operation is performed by calling function copyHubV2025R0.
See the endpoint docs at API Reference.
await client.hubs.copyHubV2025R0(createdHub.id, {
title: copiedHubTitle,
description: copiedHubDescription,
} satisfies HubCopyRequestV2025R0);
string
https://*.app.box.com/hubs/123 the hub_id is 123. Example: “12345”HubCopyRequestV2025R0
CopyHubV2025R0OptionalsInputThis function returns a value of type HubV2025R0.
Returns a new Hub object.