younifyd
Menu

Create or update a legacy index template (PUT)

Create or update a legacy index template

PUT/_template/{name}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Create or update a legacy index template (PUT) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{createOrUpdateALegacyIndexTemplatePut.response.data}}.

Request

Path parameters

namestringrequired

The name of the template

Query parameters

createboolean

If true, this request cannot replace or update existing index templates.

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.

ordernumber

Order in which Elasticsearch applies this template if index matches multiple templates. Templates with lower 'order' values are merged first. Templates with higher 'order' values are merged later, overriding templates with lower values.

causestring

User defined reason for creating or updating the index template

Response

Returns 200 with an object. Read it in later steps with {{createOrUpdateALegacyIndexTemplatePut.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 a legacy index template (PUT) — Elasticsearch — Documentation