> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-dx-3089.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# RENAME

> Rename a key

## Arguments

<ParamField body="source" type="string" required>
  The original key.
</ParamField>

<ParamField body="destination" type="string" required>
  A new name for the key.
</ParamField>

## Response

<ResponseField type="string" required>
  `OK`
</ResponseField>

<RequestExample>
  ```ts Example theme={null}
   await redis.rename("old", "new");
  ```
</RequestExample>


## Related topics

- [RENAME](/redis/sdks/py/commands/generic/rename.md)
- [Rename Namespace](/vector/api/endpoints/rename-namespace.md)
- [Rename Database](/devops/developer-api/redis/rename_database.md)
- [Rename Index](/devops/developer-api/vector/rename_index.md)
