folder.setSlug(slug)

Choose a new slug for your folder.

Syntax

1folder.setSlug(slug: string): Promise<null>

Parameters:

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

Returns

Promise<null>

A Promise that resolves to null.

Example

TypeScript
1// Create and give slug to new folder
2const newFolder = await webflow.createPageFolder()
3await newFolder.setSlug(slug)
4
5// Print details
6const newSlug = await newFolder.getSlug()
7console.log("My New Slug", newSlug)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny