Obtaining box links en masse
AnsweredIf you have several thousand folders and you want to create a shared link for all of them individually, is there any way to generate that in bulk? The ideal would be an excel with one column with all the folder names and a second column with all the associated shared links.
Thanks for any help here!
-
Official comment
Hello Vienna,
It is possible to create shared links in bulk via our API. I would recommend doing this with our CLI based on what you've described. Here is documentation for the command you'd want to use: https://github.com/box/boxcli/blob/master/docs/folders.md#box-foldersshare-id. This will allow you to create a .csv file with one column of all the folder IDs you'd like a shared link for and then you can export the results as a .csv so you have each generated shared link.
box folders:share ID --bulk-file-path=INSERTPATHHERE
--save-to-file-path=INSERTPATHHERE
Best,
Kourtney, Box Developer Advocate
Comment actions -
i tried this command but its not working, error Could not open input file. Im trying to create shared link for all files in a specific folders. and i want it to set preview only access. how to do it?
box folders:share ID --bulk-file-path=INSERTPATHHERE
--save-to-file-path=INSERTPATHHERE
Please sign in to leave a comment.
Comments
5 comments