This document describes the tools available in the box_tools_collaboration module for managing collaborations on Box files and folders.
List all collaborations on a specific file.
- Arguments:
ctx: Request contextfile_id: ID of the Box file
List all collaborations on a specific folder.
- Arguments:
ctx: Request contextfolder_id: ID of the Box folder
Delete a specific collaboration.
- Arguments:
ctx: Request contextcollaboration_id: ID of the collaboration
Update a collaboration's role, status, expiration date, and visibility settings.
- Arguments:
ctx: Request contextcollaboration_id: ID of the collaborationrole: New collaboration role- Additional optional parameters for expiration and visibility
Create a collaboration on a file with a group specified by group ID (supports various roles and access settings).
- Arguments:
ctx: Request contextfile_id: ID of the Box filegroup_id: ID of the grouprole: Collaboration role (default: "editor")
Create a collaboration on a file with a user specified by user ID.
- Arguments:
ctx: Request contextfile_id: ID of the Box fileuser_id: ID of the userrole: Collaboration role (default: "editor")
Create a collaboration on a file with a user specified by user login/email.
- Arguments:
ctx: Request contextfile_id: ID of the Box fileuser_login: Email or login of the userrole: Collaboration role (default: "editor")
Create a collaboration on a folder with a group specified by group ID.
- Arguments:
ctx: Request contextfolder_id: ID of the Box foldergroup_id: ID of the grouprole: Collaboration role (default: "editor")
Create a collaboration on a folder with a user specified by user ID.
- Arguments:
ctx: Request contextfolder_id: ID of the Box folderuser_id: ID of the userrole: Collaboration role (default: "editor")
Create a collaboration on a folder with a user specified by user login/email.
- Arguments:
ctx: Request contextfolder_id: ID of the Box folderuser_login: Email or login of the userrole: Collaboration role (default: "editor")
Refer to src/tools/box_tools_collaboration.py for implementation details.