Trigger file move to subfolder
I want to use an intake folder that temporarily stores image files that gets triggered to be moved to a subfolder based on the filename. Can this be done using an API or Webhook? I appreciate any help in advance.
-
Hi jedediah50,
This is definitely something that can be done with the V2 Webhook service, part of the Box API. You can set your webhook up to target your specified folder with the FILE.UPLOADED trigger. Part of the payload sent to your app will include the filename uploaded. From there, you can write some logic based on the filename to make an subsequent API call to box to move the file to a specified subfolder. The logic of moving the file with a request to the Box API call will be implemented in your app. Box offers a suite of SDKs to help with setting up a client to make API requests to Box which includes methods for moving/copying files and folders within an account. Hope this helps!
Please sign in to leave a comment.
Comments
1 comment