younifyd
Menu

Render a search template (POST /_render/template/{id})

Render a search template

POST/_render/template/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Render a search template (POST /_render/template/{id}) action (under search).
  3. Fill in the fields below, then reference the result from later steps as {{renderASearchTemplatePostRenderTemplateId.response.data}}.

Request

Path parameters

idstringrequired

The ID of the search template to render. If no `source` is specified, this or the `id` request body parameter is required.

Response

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

template_outputobject
json
{
  "template_output": {}
}

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

Render a search template (POST /_render/template/{id}) — Elasticsearch — Documentation