createFolder( )


Creates a new folder in the Media Manager.

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 method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Manage Media Manager
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>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?