Skip to content

Rename Hive

Description

This operation renames a hive.

Method

Backendless.Hive(hiveName).rename(newHiveName): Promise<void>;

where:

Argument                Description
hiveName Name of a hive to rename. String value.
newHiveName A new name to assign to a hive. String value.

Return Value

None.

Example

The example below renames the 'groceryStore' hive to 'furnitureStore'.

await Backendless.Hive('groceryStore').rename('furnitureStore')

where:

Argument                Description
'groceryStore' The current name of the hive.
'furnitureStore' A new name to assign to a hive.

Codeless Reference

management_api_rename_hive

where:

Argument                Description
current name Name of a hive to rename.
new name New name to assign to a hive.

The example below renames the "groceryStore" hive to "furnitureStore":

management_api_example_rename_hive