younifyd
Menu

Create or update an ES|QL view

Create or update an ES|QL view

PUT/_query/view/{name}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Create or update an ES|QL view action (under esql).
  3. Fill in the fields below, then reference the result from later steps as {{createOrUpdateAnEsQlView.response.data}}.

Request

Path parameters

namestringrequired

The view name to create or update.

Request body

Enter the body as JSON in the step's Body field.

querystringrequired

The ES|QL query string from which to create a view.

json
{
  "query": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{createOrUpdateAnEsQlView.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 ES|QL view — Elasticsearch — Documentation