- List all Box Hubs
- Create Box Hub
- List all Box Hubs for requesting enterprise
- Get Box Hub information by ID
- Update Box Hub information by ID
- Delete Box Hub
- Copy Box Hub
Retrieves all Box Hubs for requesting user.
This operation is performed by calling function get_hubs_v2025_r0.
See the endpoint docs at API Reference.
client.hubs.get_hubs_v2025_r0(
scope="all", sort="name", direction=GetHubsV2025R0Direction.ASC
)- query
Optional[str]- The query string to search for Box Hubs.
- scope
Optional[str]- The scope of the Box Hubs to retrieve. Possible values include
editable,view_only, andall. Default isall.
- The scope of the Box Hubs to retrieve. Possible values include
- sort
Optional[str]- The field to sort results by. Possible values include
name,updated_at,last_accessed_at,view_count, andrelevance. Default isrelevance.
- The field to sort results by. Possible values include
- direction
Optional[GetHubsV2025R0Direction]- The direction to sort results in. This can be either in alphabetical ascending (
ASC) or descending (DESC) order.
- The direction to sort results in. This can be either in alphabetical ascending (
- marker
Optional[str]- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.
- 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 HubsV2025R0.
Returns all Box Hubs for the given user or enterprise.
Creates a new Box Hub.
This operation is performed by calling function create_hub_v2025_r0.
See the endpoint docs at API Reference.
client.hubs.create_hub_v2025_r0(hub_title, description=hub_description)- title
str- Title of the Box Hub. It cannot be empty and should be less than 50 characters.
- description
Optional[str]- Description of the Box Hub.
- 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 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 get_enterprise_hubs_v2025_r0.
See the endpoint docs at API Reference.
client.hubs.get_enterprise_hubs_v2025_r0(
sort="name", direction=GetEnterpriseHubsV2025R0Direction.ASC
)- query
Optional[str]- The query string to search for Box Hubs.
- sort
Optional[str]- The field to sort results by. Possible values include
name,updated_at,last_accessed_at,view_count, andrelevance. Default isrelevance.
- The field to sort results by. Possible values include
- direction
Optional[GetEnterpriseHubsV2025R0Direction]- The direction to sort results in. This can be either in alphabetical ascending (
ASC) or descending (DESC) order.
- The direction to sort results in. This can be either in alphabetical ascending (
- marker
Optional[str]- Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.
- 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 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 get_hub_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.hubs.get_hub_by_id_v2025_r0(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. 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
- 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 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 update_hub_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.hubs.update_hub_by_id_v2025_r0(
hub_id, title=new_hub_title, description=new_hub_description
)- 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
- title
Optional[str]- Title of the Box Hub. It cannot be empty and should be less than 50 characters.
- description
Optional[str]- Description of the Box Hub.
- is_ai_enabled
Optional[bool]- Indicates if AI features are enabled for the Box Hub.
- is_collaboration_restricted_to_enterprise
Optional[bool]- Indicates if collaboration is restricted to the enterprise.
- can_non_owners_invite
Optional[bool]- Indicates if non-owners can invite others to the Box Hub.
- can_shared_link_be_created
Optional[bool]- Indicates if a shared link can be created for the Box Hub.
- can_public_shared_link_be_created
Optional[bool]- Indicates if a public shared link can be created for the Box Hub.
- 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 HubV2025R0.
Returns a Hub object.
Deletes a single Box Hub.
This operation is performed by calling function delete_hub_by_id_v2025_r0.
See the endpoint docs at API Reference.
client.hubs.delete_hub_by_id_v2025_r0(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. 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
- 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 None.
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 copy_hub_v2025_r0.
See the endpoint docs at API Reference.
client.hubs.copy_hub_v2025_r0(
created_hub.id, title=copied_hub_title, description=copied_hub_description
)- 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
- title
Optional[str]- Title of the Box Hub. It cannot be empty and should be less than 50 characters.
- description
Optional[str]- Description of the Box Hub.
- 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 HubV2025R0.
Returns a new Hub object.