younifyd
Menu

Create or update an index template (POST)

Create or update an index template

POST/_index_template/{name}

Use it in a workflow

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

Request

Path parameters

namestringrequired

Index or template name

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.

causestring

User defined reason for creating or updating the index template

Response

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