Is there any Rest api to get metadata of all folders and files in Box Drive ?
Hello,
In my application I want to get the whole box drive metadata, is there any rest API by which I can get the whole drive metadata .
Thank you.
-
We don't have an endpoint to get all this information in one call. Getting metadata for all files and folders in a Box instance requires calls to three endpoints: Get Folder Items, Get All Metadata on File, and Get All Metadata on Folder.
You would first have call the Get Folder Items endpoint recursively. This would give you a list of all the files and folders in a Box instance. For the files in that list, you would call the Get All Metadata on File endpoint, which gives you the metadata for each file. For the folders in that list, you would call the Get All Metadata on Folder, which gives you the metadata for each folder.
-
Thanks for your reply.
I want to store metadata of box drive in my database. For this i am thinking of single api through which i can get all data. Like Google Drive api :https://developers.google.com/drive/v3/reference/files/list
If i use three endpoint suggested by you in a drive which have 1000 of folder and each folder contains 100 files then it will be very lengthy process . Is there any other alternative way to do it.
Please sign in to leave a comment.
Comments
3 comments