Set Asset Name

asset.setName(name)

Set the name of an asset.

Syntax

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

Parameters

  • name: string - The name of the asset.

Returns

A Promise that resolves to null.

Example

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

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManageAssetsAnyAnyAnyAny