# Index template put versus post

**URL:** <https://discuss.elastic.co/t/index-template-put-versus-post/356806>\
**Category:** Elasticsearch\
**Created:** [April 4, 2024, 5:16pm UTC](https://discuss.elastic.co/t/index-template-put-versus-post/356806 "2024-04-04T17:16:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpniel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mpniel/32/113170_2.png) [@mpniel](https://discuss.elastic.co/u/mpniel)\
**Post date:** [April 4, 2024, 5:16pm UTC](https://discuss.elastic.co/t/index-template-put-versus-post/356806/1 "2024-04-04T17:16:39Z")

</div>

What is the correct Kibana Api command to create an index template ?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 4, 2024, 5:24pm UTC](https://discuss.elastic.co/t/index-template-put-versus-post/356806/2 "2024-04-04T17:24:24Z")

</div>

Index templates are generally created in Elasticsearch. Have you looked at [the documentation around this](https://www.elastic.co/guide/en/elasticsearch/reference/8.13/index-templates.html)?
