Skip to content

Rename Hive

Description

This operation renames a hive.

Method

[[Backendless.shared hive:(NSString *)hiveName] renameWithNewName:(NSString *)newName responseHandler:^(void)responseHandler errorHandler:^(Fault *)errorHandler];
Backendless.shared.hive(hiveName: String).rename(newName: String, responseHandler: (() -> Void)!, errorHandler: ((Fault) -> Void)!)

where:

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

Return Value

None.

Example

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

[[Backendless.shared hive:@"groceryStore"] renameWithNewName:@"furnitureStore" responseHandler:^{
    // handle response
} errorHandler:^(Fault *fault) {
    // handle error
}];
Backendless.shared.hive("groceryStore").rename(newName: "furnitureStore", responseHandler: {
    // fault in
}, errorHandler: { fault in
    // error in
})

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