Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters.
If no parameters are specified, the endpoint returns all files in the MEDIA_ROOT
folder.
You can only call this method when authenticated as a Wix app or Wix user identity.
function searchFiles(options: SearchFilesOptions): Promise<SearchFilesResponse>;
Options to specify which folders to search.
import { files } from "@wix/media";
async function searchFiles(options) {
const response = await files.searchFiles(options);
}
There are 2 errors with this status code.
This method may also return standard errors. Learn more about standard Wix errors.