---
acl_categories:
- '@search'
arguments:
- name: alias
type: string
- name: index
type: string
categories:
- docs
- develop
- stack
- oss
- rs
- rc
- oss
- kubernetes
- clients
complexity: O(1)
description: Adds or updates an alias to the index
group: search
hidden: false
linkTitle: FT.ALIASUPDATE
module: Search
railroad_diagram: /images/railroad/ft.aliasupdate.svg
since: 1.0.0
stack_path: docs/interact/search-and-query
summary: Adds or updates an alias to the index
syntax_fmt: FT.ALIASUPDATE alias index
title: FT.ALIASUPDATE
---
Add an alias to an index. If the alias is already associated with another
index, FT.ALIASUPDATE removes the alias association with the previous index.
[Examples](#examples)
## Required arguments
alias index
is alias to be added to an index.
## Examples
Update an index alias
Update the alias of an index.
{{< highlight bash >}}
127.0.0.1:6379> FT.ALIASUPDATE alias idx
OK
{{< / highlight >}}
## Redis Software and Redis Cloud compatibility
| Redis
Software | Redis Cloud
Flexible & Annual | Redis Cloud
Free & Fixed | Notes |
|:----------------------|:-----------------|:-----------------|:------|
| ✅ Supported | ✅ Supported | ✅ Supported | |
## Return information
{{< multitabs id="ft-aliasupdate-return-info"
tab1="RESP2"
tab2="RESP3" >}}
One of the following:
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if executed correctly.
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: index does not exist.
-tab-sep-
One of the following:
* [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}): `OK` if executed correctly.
* [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: index does not exist.
{{< /multitabs >}}
## See also
[`FT.ALIASADD`]({{< relref "commands/ft.aliasadd/" >}}) | [`FT.ALIASDEL`]({{< relref "commands/ft.aliasdel/" >}})
## Related topics
[RediSearch]({{< relref "/develop/ai/search-and-query/" >}})