> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/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={"system"}
   await redis.rename("old", "new");
  ```
</RequestExample>


## Related topics

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