This is an overview of the changes to the Webflow APIs and related tools. To filter the list, select one or more tags.
Rename the base variable mode
The base variable mode — the default set of values that variables fall back to — is now first-class in the Designer API. It has the reserved ID "base" and, by default, the name "Base mode".
You can now work with the base mode like any other mode:
- Rename it with
mode.setName(). Its ID stays"base"even after it’s renamed. - Retrieve it by ID with
collection.getVariableModeById("base"), or by its (default or renamed) name withcollection.getVariableModeByName().
Behavior change: getAllVariableModes includes the base mode
collection.getAllVariableModes() now includes the base mode in the returned array (as the first entry). If your integration iterates over the result, it will now encounter the base mode — for example, when listing or counting a collection’s modes.
For more information, see Variable Modes.