From 5c5d174870921975122c49c197fad5c2c3a7eab3 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:33:47 -0500 Subject: [PATCH] Adds to templates API (#1765) (#1780) * 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 70c96bd77b..f05b990d6c 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/