editor, viewer, and co-owner. You can only invite users who have a Box account (any plan) to collaborate on a hub.
Create a hub collaboration
To add a user or group to a hub, call the endpoint and provide:- The hub reference (
HUB_ID) - The collaborator’s ID and type in the
accessible_byfield - The level of access granted to a hub in the
rolefield
Create by user ID
Create by user email (login)
HUB_ID, USER_ID, and the email with real values. Valid role values are editor, viewer, and co-owner. A successful response returns the new object.
List hub collaborations
To list all collaborations for a hub, call the endpoint with the hub ID.marker and limit. For details, see Marker-based pagination.
Get a hub collaboration by ID
To retrieve a single hub collaboration, call the endpoint with the collaboration ID.Update a hub collaboration
To change a collaborator’s role, call the endpoint with the hub collaboration ID and the newrole.
Delete a hub collaboration
To remove a collaborator from a hub, call the endpoint with the hub collaboration ID.Use cases
- Onboarding automation: When a new hire is added to your HRIS, create a “Welcome Hub” and add them as a collaborator with the appropriate role.
- Group-based access: Use the to find the right group, then add the group as a collaborator so all members get access.
