Skip to main content
Question

search endpoint does not include subfolders

  • May 23, 2025
  • 2 replies
  • 20 views

Forum|alt.badge.img

According to the documentation of the search endpoint for ancestor_folder_ids Search results will also include items within any subfolders of those ancestor folders.

In one case I'm observing that this does not happen.

There's a file with extension .abc in the folder "0" / "127776557xxx" / "197135556yyy" / "134100556zzz"

Calling search with query = "abc" and ancestor_folder_ids = { "134100556zzz" } (immediate parent folder) will return the file.

Calling search with query = "abc" and ancestor_folder_ids = { "197135556yyy" } (parent folder of immediate parent folder) does NOT return the file.

How is this possible?

2 replies

Forum|alt.badge.img

Hi Claudius, you mentioned that this does not work in one case you have. Has it worked in the past or in other cases?


Forum|alt.badge.img

Hi Jay - Yes, this is and was definitely working as documented in the API specs. I have been using the search endpoint for years for many different accounts and didn't experience the behavior before. Also for other folders in the same account search works as expected.

May it play a role if shared folders are involved?