Renames a key, only if the new key does not exist.

Throws an exception if the key does not exist.

Arguments

source
str
required

The original key.

destination
str
required

A new name for the key.

Response

True if key was renamed