webflow.createPageFolder()

Creates a new folder on the site.

Syntax

1webflow.createPageFolder(): Promise<Folder>

Returns

Promise<Folder>

A Promise that resolves to the newly created folder.

Example

1// Create and name new folder
2const newFolder = await webflow.createPageFolder()
3await newFolder.setName(name)
4
5// Print details
6const folderName = await newFolder.getName()
7console.log(folderName)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canCreatePageAnyAnyAnyDesign