API: Fix for searching with folderid