I'm using python and the Box API to search and am trying to include 2 folders in my 'ancestor_folder_ids' parameter. The documentation implies you can enter multiple IDs, but none of my testing has shown this to work. The search result only includes the last folder in the ancestor_folder_ids = [oppty_folder_id,account_folder_id] list. I've swapped the folders in the =[....] list and it always returns only the last one listed.
How do I get the search to include both folders? Is my syntax below incorrect?
oppty_folder_id = "5***phone number removed for privacy***"
account_folder_id = "6***phone number removed for privacy***"
items = client.search().query(query='test',
limit=1000,
ancestor_folder_ids=[oppty_folder_id,account_folder_id],
file_extensions=['pdf'],
type=['file'],
fields=['id','type','modified_at','name','parent','path_collection']
)



