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 thePOST /2.0/hub_collaborations 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 Hub collaboration object.
List hub collaborations
To list all collaborations for a hub, call theGET /2.0/hub_collaborations 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 theGET /2.0/hub_collaborations/{hub_collaboration_id} endpoint with the collaboration ID.
Update a hub collaboration
To change a collaborator’s role, call thePUT /2.0/hub_collaborations/{hub_collaboration_id} endpoint with the hub collaboration ID and the new role.
Delete a hub collaboration
To remove a collaborator from a hub, call theDELETE /2.0/hub_collaborations/{hub_collaboration_id} 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 Box Groups API to find the right group, then add the group as a collaborator so all members get access.
