application/json

Body

  • file string
  • params object

    Key-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value.

    Hide params attributes Show params attributes object
  • source string

    An inline search template. Supports the same parameters as the search API's request body. These parameters also support Mustache variables. If no id or <templated-id> is specified, this parameter is required.

Responses

POST /_render/template
curl \
 -X POST http://api.example.com/_render/template \
 -H "Content-Type: application/json" \
 -d '{"file":"string","params":{"key":{}},"source":"string"}'