For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Resources
Get started
ReferenceGuidesExamplesChangelog
ReferenceGuidesExamplesChangelog
  • Designer API
    • Introduction
    • Getting Started
    • Webflow CLI
    • Error Handling
    • App Modes
  • Elements
    • Creating & Retrieving Elements
    • Element Properties & Methods
    • Element Types & Methods
  • Styles
    • Managing Style Properties
    • Managing Variable Modes
  • Components
  • Variables & Collections
    • Variable Collections
    • Variables
    • Variable Modes
  • Assets
  • Pages & Folders
      • Get folder name
      • Get folder slug
      • Get parent folder
      • Set folder name
      • Set folder slug
      • Set parent folder
  • Utilities
    • User Events & Notifications
    • App Intents & Connections
  • Additional Resources
    • API Playground
    • FAQs
LogoLogo
Resources
Get started
On this page
  • folder.setSlug(slug)
  • Syntax
  • Parameters:
  • Returns
  • Example
  • Designer Ability
Pages & FoldersManaging Folders

Set folder slug

Was this page helpful?
Previous

Set parent folder

Next
Built with

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)

Try this example

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny