Create or update an alias
- POST /_aliases
Adds a data stream or index to an alias.
Request body
-
actionsobject -
Actions to perform.
-
addobject -
Adds a data stream or index to an alias. If the alias doesn’t exist, the
addaction creates it. -
filterQuery -
Query used to limit documents the alias can access.
-
index_routingstring -
Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. Data stream aliases don’t support this parameter. -
If
true, the alias is hidden. -
routingstring -
Value used to route indexing and search operations to a specific shard. Data stream aliases don’t support this parameter.