From 9acf3fefa9eb6839297ed0df04167447875b70b2 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 1 Nov 2022 15:32:21 -0500 Subject: [PATCH] Adds to templates API (#1765) (#1784) * Adds to templates API Signed-off-by: Fanit Kolchina * Added get all templates Signed-off-by: Fanit Kolchina Signed-off-by: Fanit Kolchina (cherry picked from commit 887ed470d8462e084edaffd8b26b8ab65ce3504a) Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> --- _opensearch/index-templates.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_opensearch/index-templates.md b/_opensearch/index-templates.md index 9529d4064b..51490a0fe9 100644 --- a/_opensearch/index-templates.md +++ b/_opensearch/index-templates.md @@ -10,10 +10,11 @@ Index templates let you initialize new indexes with predefined mappings and sett ### Create a template -To create an index template, use a POST request: +To create an index template, use a PUT or POST request: ```json -POST _index_template +PUT _index_template/