Set Asset Name

asset.setName(name)

Set the name of an asset.

Syntax

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

Parameters

  • name: string - The name of the asset.

Returns

A Promise that resolves to null.

Example

1const assets = await webflow.getAllAssets()
2const asset = assets[0]
3await asset.setName("Marvin the Paranoid Android")

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManageAssetsAnyAnyAnyAny
Built with