box-node-sdk

HubItemsManager

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

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

Returns

This function returns a value of type HubItemsManageResponseV2025R0.