createFolder( )


Creates a new folder in the Media Manager.

The createFolder() function returns a Promise that resolves to the created folder.

Use the parentFolderId parameter to specify in which existing folder you want the new folder to be created. If no folder is specified, the new folder is created in the media-root folder.

Authentication

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

Permissions
Manage Bookings Services and Settings
Manage Media Manager
Manage Portfolio
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
displayNamestringRequired

Folder name that appears in the Media Manager.


optionsCreateFolderOptions

Options for specifying where to create a folder.

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