younifyd
Menu

Create or update an alias (POST /{index}/_aliases/{name})

Create or update an alias

POST/{index}/_aliases/{name}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Create or update an alias (POST /{index}/_aliases/{name}) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{createOrUpdateAnAliasPostIndexAliasesName.response.data}}.

Request

Path parameters

indexoneOfrequired

Comma-separated list of data streams or indices to add. Supports wildcards (`*`). Wildcard patterns that match both data streams and indices return an error.

namestringrequired

Alias to update. If the alias doesn’t exist, the request creates it. Index alias names support date math.

Query parameters

master_timeoutoneOf

Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

timeoutoneOf

Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

Response

Returns 200 with an object. Read it in later steps with {{createOrUpdateAnAliasPostIndexAliasesName.response.data.<field>}}.

acknowledgedboolean

For a successful response, this value is always true. On failure, an exception is returned instead.

json
{
  "acknowledged": false
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Create or update an alias (POST /{index}/_aliases/{name}) — Elasticsearch — Documentation