Search for Zoho WorkDrive Team Folder using API

Search for Zoho WorkDrive Team Folder using API

I'm trying to create a function that uploads a PDF to Zoho WorkDrive Team Folder. Each Zoho Project has a unique Team Folder, so before uploading the PDF, I have to search for the Team Folder.

I used this function (https://workdrive.zoho.com/apidocs/v1/search/searchteamfiles) but it only returns files (and maybe folders? -not sure-) located inside Team Folders, not the Team Folder itself.

How can I search for a Team Folder?

I noticed that if you open the Team Folders section in WorkDrive, you get a second search bar that allows you to search for Team folders only. Not sure if that's related, but it looks like the main search bar returns the same results as my function, and the other search bar returns the folder I'm looking for.