I have a job that runs and creates files and folders based on data users put into our external system. However, I need to check if the folder exists first so if it doesn't, I can create the folder and assign the folder id as the file's parent and if it does, I can do the same for the already existing folder. The problem is, in my testing, I create a folder through the api, then hit https://api.box.com/2.0/search?query=&type=folder to query it and nothing comes back. After about 30 seconds to a minute, I can query again and the folder data comes back correctly. This will be a problem if a user adds multiple files to the folder within that 30 seconds to one minute. Am I missing something here?
Question
Using the search API doesn't return new creations
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.