Forum Discussion
Parent folders/spaces
Hello everybody,
I am using your API. While setting up the connection to the API, the team environment is always choosen.
When using the method /2/files/search_v2, when I only set up the name which the file should contain without the path, all files from every "parent" folder is gotten. But when I use method 2/files/list_folder I don't see all "parent" folders, only the "subfolders" of the first folder (Tereza Tester) as you can see on the printscreen below.
After looking for a solution I found out, I need to turn the "parent" folders into spaces to have them returned by the 2/files/list_folder method, is that correct?
Also, when I use other methods like 2/files/download and set up the full path of the file, it is unable to get the file. I can only get the file which is in the first folder (Tereza Tester) and the path to the file can only start with the "subfolders". While with the method /2/files/search_v2, when I want to look for a file in a specified folder, the full path has to be set up otherwise it returns nothing (parent_folder/subfolder/file).
May you help me please?
Thank you in advance.
Tereza