Create an Asset folder
webflow.createAssetFolder(name, parentFolderId)
Creates a folder in the Assets panel, which can also be nested within an existing folder for better organization.
Syntax
Parameters
- name: string - The display name of the new folder
- parentFolderId: string - (optional) - The ID of the desired parent folder. Get existing folder IDs from webflow.getAllAssetFolders()
Returns
Return Value
A Promise resolving to an AssetFolder object.