# Are legacy index templates (\`\_template\` endpoint) deprecated?

**URL:** <https://forum.opensearch.org/t/are-legacy-index-templates-template-endpoint-deprecated/23695>\
**Category:** OpenSearch\
**Created:** [March 9, 2025, 12:42pm UTC](https://forum.opensearch.org/t/are-legacy-index-templates-template-endpoint-deprecated/23695 "2025-03-09T12:42:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohonomo](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sohonomo](https://forum.opensearch.org/u/sohonomo)\
**Post date:** [March 9, 2025, 12:42pm UTC](https://forum.opensearch.org/t/are-legacy-index-templates-template-endpoint-deprecated/23695/1 "2025-03-09T12:42:20Z")

</div>

I ask because there is no mention of them in the docs but they continue to work just fine. I’m wondering if that will still be the case in v3?

> **[Index templates](https://opensearch.org/docs/2.19/im-plugin/index-templates/)**
>
> Index templates

---

<div class="post-metadata">

**Author:** ![jong](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jong](https://forum.opensearch.org/u/jong)\
**Post date:** [April 15, 2025, 3:11pm UTC](https://forum.opensearch.org/t/are-legacy-index-templates-template-endpoint-deprecated/23695/2 "2025-04-15T15:11:57Z")

</div>

Also wondering the same. I found this other question [Differences between legacy \_template and \_index\_template](https://forum.opensearch.org/t/differences-between-legacy-template-and-index-template/17831) discussing the differences between the legacy endpoint but no responses. Hoping that both will continue to function or that functionality could be merged?

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [April 15, 2025, 11:47pm UTC](https://forum.opensearch.org/t/are-legacy-index-templates-template-endpoint-deprecated/23695/3 "2025-04-15T23:47:07Z")

</div>

@jong @sohonomo According to this comment \_templates is a legacy feature.  
Even when there is no ETA for \_templates removal, I wouldn’t build any production solutions based on that.

> <https://github.com/opensearch-project/terraform-provider-opensearch/issues/112#issuecomment-1933239261>
>
> This introduces a nasty bug! \`opensearch\_index\_template\` is supposed to call \`\_t…emplate\` not \`\_index\_template\`. Now this doesn't behave as documented. The documentation states that \`opensearch\_composable\_index\_template\` calls \`\_index\_template\` and you should use \`opensearch\_index\_template\` on \`opensearch \<2.0\` but now both resources use the same endpoint.
> 
> \_Originally posted by @arianvp in https://github.com/opensearch-project/terraform-provider-opensearch/pull/62#discussion\_r1370749318\_
