Archive files and folders in Box via webhook
Developer ToolAPI IntegrationMarketingDocument/File
What it does
When someone sends a webhook, this automation retrieves files and folders from a Box folder. It moves each item to an archive location and removes shared links so archived content is no longer public.
Who it's for
Operations teams who need to archive Box files and folders in bulk without manual steps.
How teams use this
Archive completed project files
Move all files from a project folder to an archive location and disable sharing in one batch. The team keeps the original folder structure and access controls stay in place.
Automate compliance file retention
Archive files older than a set date by sending the webhook from a compliance system. This ensures Box stays organized and meets retention policies without manual work.
Add approval before archiving
Include a condition to check a custom Box field or require a manager approval step before files move to archive. Only items that meet the criteria are processed.
How it works
- Receive archive request via webhook. A real-time HTTP webhook from an external system triggers this automation when someone sends the archive signal with the folder details.
- List files and folders to archive. Box retrieves all files and folders from the specified folder so each item can be processed in the batch loop.
- Move each item to archive. For each file or folder in the list, Box renames and moves it to the archive location in the folder structure.
- Remove shared links. For each item, Box removes its shared link so archived files are no longer publicly accessible to external parties.