listFolders( )


Retrieves a list of folders in the Media Manager.

The listFolders() function returns a Promise that resolves to information about the specified folders and cursor information.

To retrieve a list of folders within a specific folder in the Media Manager, pass the specific folder's ID in the parentFolderId parameter. If no folder is specified, the function retrieves only the list of folders within the root folder of the Media Manager.

To retrieve a list of (non-permanently) deleted folders, use the listDeletedFolders() function.

Admin Method

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permission Scopes

For app development, you must have one of the following permission scopes:
Manage Bookings Services and Settings
Read Media Manager
Manage Media Manager
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
optionsListFoldersOptions

Options to use when listing folders from the Media Manager.

Returns
Return Type:Promise<ListFoldersResponse>
Was this helpful?
Yes
No