This document describes the tools available in the box_tools_shared_links module for managing shared links for files, folders, and web links in Box.
Get a shared link for a file.
- Arguments:
ctx: Request contextfile_id: ID of the file
Create or update a shared link for a file with access level, download/preview/edit permissions, password, and expiration.
- Arguments:
ctx: Request contextfile_id: ID of the fileaccess: Access level (optional)can_download: Can download (optional)can_preview: Can preview (optional)can_edit: Can edit (optional)password: Password (optional)vanity_name: Vanity name (optional)unshared_at: Expiration date (optional)
Remove a shared link from a file.
- Arguments:
ctx: Request contextfile_id: ID of the file
Find a file by its shared link URL (supports password-protected links).
- Arguments:
ctx: Request contextshared_link_url: The shared link URLpassword: Password if link is protected (optional)
Get a shared link for a folder.
- Arguments:
ctx: Request contextfolder_id: ID of the folder
Create or update a shared link for a folder with configurable permissions.
- Arguments:
ctx: Request contextfolder_id: ID of the folderaccess: Access level (optional)can_download: Can download (optional)can_preview: Can preview (optional)can_edit: Can edit (optional)password: Password (optional)vanity_name: Vanity name (optional)unshared_at: Expiration date (optional)
Remove a shared link from a folder.
- Arguments:
ctx: Request contextfolder_id: ID of the folder
Find a folder by its shared link URL.
- Arguments:
ctx: Request contextshared_link_url: The shared link URLpassword: Password if link is protected (optional)
Create or update a shared link for a web link.
- Arguments:
ctx: Request contextweb_link_id: ID of the web linkaccess: Access level (optional)password: Password (optional)vanity_name: Vanity name (optional)unshared_at: Expiration date (optional)
Get a shared link for a web link.
- Arguments:
ctx: Request contextweb_link_id: ID of the web link
Remove a shared link from a web link.
- Arguments:
ctx: Request contextweb_link_id: ID of the web link
Find a web link by its shared link URL.
- Arguments:
ctx: Request contextshared_link_url: The shared link URLpassword: Password if link is protected (optional)
Refer to src/tools/box_tools_shared_links.py for implementation details.