Render a search template
- POST also GET /_render/template/{id}
- POST also GET /_render/template
Path Parameters
-
idstring Idoptional -
The ID of the search template to render. If no
sourceis specified, this or theidrequest body parameter is required.Leave it out to use
/_render/template.
Request
-
idstring Id -
The ID of the search template to render. If no
sourceis specified, this or the<template-id>request path parameter is required. If you specify both this parameter and the<template-id>parameter, the API uses only<template-id>. -
filestring -
paramsmap string to object -
Key-value pairs used to replace Mustache variables in the template. The key is the variable name. The value is the variable value.
-
sourcestring -
An inline search template. It supports the same parameters as the search API's request body. These parameters also support Mustache variables. If no
idor<templated-id>is specified, this parameter is required.
Response
application/json
-
template_outputmap string to objectrequired