[[indices-template-exists]]
=== Index template exists API
++++
Index template exists
++++
Checks if an index template exists.
[source,console]
-----------------------------------------------
HEAD /_template/template_1
-----------------------------------------------
[[template-exists-api-request]]
==== {api-request-title}
`HEAD /_template/`
[[template-exists-api-desc]]
==== {api-description-title}
Use the index template exists API
to determine whether one or more index templates exist.
include::templates.asciidoc[tag=index-template-def]
[[template-exists-api-path-params]]
==== {api-path-parms-title}
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-template]
[[template-exists-api-query-params]]
==== {api-query-parms-title}
include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]
include::{docdir}/rest-api/common-parms.asciidoc[tag=local]
include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
[[template-exists-api-response-codes]]
==== {api-response-codes-title}
`200`::
Indicates all specified index templates exist.
`404`::
Indicates one or more specified index templates **do not** exist.