Retrieves all items associated with a Box Hub.
This operation is performed by calling function get_hub_items_v2025_r0.
See the endpoint docs at API Reference.
client.hub_items.get_hub_items_v2025_r0(created_hub.id)- hub_id
str- 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.
- 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
- parent_id
Optional[str]- The unique identifier of an item list block within the Box Hub. When provided, the response will only include items that belong to the specified item list, allowing you to filter results to items on a specific page or section.
- marker
Optional[str]- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
usemarkerto be set totrue.
- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires
- limit
Optional[int]- The maximum number of items to return per page.
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type HubItemsV2025R0.
Retrieves the items associated with the specified Box Hub.
Adds and/or removes Box Hub items from a Box Hub.
This operation is performed by calling function manage_hub_items_v2025_r0.
See the endpoint docs at API Reference.
client.hub_items.manage_hub_items_v2025_r0(
created_hub.id,
operations=[
HubItemOperationV2025R0(
action=HubItemOperationV2025R0ActionField.ADD,
item=FolderReferenceV2025R0(id=folder.id),
)
],
)- hub_id
str- 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
- operations
Optional[List[HubItemOperationV2025R0]]- List of operations to perform on Box Hub items.
- box_version
BoxVersionHeaderV2025R0- Version header.
- extra_headers
Optional[Dict[str, Optional[str]]]- Extra headers that will be included in the HTTP request.
This function returns a value of type HubItemsManageResponseV2025R0.