folder.setName(name)

Set the folder name.

Syntax

1folder.setName(name: string): Promise<null>

Parameters

  • name: string - The new name to set for the folder.

Returns

Promise<null>

A Promise that resolves to null.

Example

TypeScript
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("My New Folder", folderName)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny