HubItemsManager
September 4, 2025 ยท View on GitHub
Get Box Hub items
Retrieves all items associated with a Box Hub.
This operation is performed by calling function getHubItemsV2025R0.
See the endpoint docs at API Reference.
await client.hubItems.getHubItemsV2025R0({
hubId: createdHub.id,
} satisfies GetHubItemsV2025R0QueryParams);
Arguments
- queryParams
GetHubItemsV2025R0QueryParams- Query parameters of getHubItemsV2025R0 method
- optionalsInput
GetHubItemsV2025R0OptionalsInput
Returns
This function returns a value of type HubItemsV2025R0.
Retrieves the items associated with the specified Box Hub.
Manage Box Hub items
Adds and/or removes Box Hub items from a Box Hub.
This operation is performed by calling function manageHubItemsV2025R0.
See the endpoint docs at API Reference.
await client.hubItems.manageHubItemsV2025R0(createdHub.id, {
operations: [
{
action: 'add' as HubItemOperationV2025R0ActionField,
item: new FolderReferenceV2025R0({ id: folder.id }),
} satisfies HubItemOperationV2025R0,
],
} satisfies HubItemsManageRequestV2025R0);
Arguments
- hubId
string- The unique identifier that represent a hub. The ID for any hub can be determined by visiting this hub in the web application and copying the ID from the URL. For example, for the URL
https://*.app.box.com/hubs/123thehub_idis123. Example: "12345"
- The unique identifier that represent a hub. The ID for any hub can be determined by visiting this hub in the web application and copying the ID from the URL. For example, for the URL
- requestBody
HubItemsManageRequestV2025R0- Request body of manageHubItemsV2025R0 method
- optionalsInput
ManageHubItemsV2025R0OptionalsInput
Returns
This function returns a value of type HubItemsManageResponseV2025R0.