Skip to content

dimension.rename ​

Renames a dimension.

The dimension's id doesn't change.

js
dimension.rename(dimension, newName)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's current name or id.
newNamestringThe dimension's new name.

Returns ​

boolean

true when it succeeds, or false when the dimension can't be found or another dimension already has the new name.

Examples ​

js
dimension.rename("Prod", "Product");