# GET \_mapping with body update index mapping

**URL:** <https://discuss.elastic.co/t/get-mapping-with-body-update-index-mapping/110035>\
**Category:** Elasticsearch\
**Created:** [December 3, 2017, 5:18am UTC](https://discuss.elastic.co/t/get-mapping-with-body-update-index-mapping/110035 "2017-12-03T05:18:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tremk](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tremk](https://discuss.elastic.co/u/tremk)\
**Post date:** [December 3, 2017, 5:18am UTC](https://discuss.elastic.co/t/get-mapping-with-body-update-index-mapping/110035/1 "2017-12-03T05:18:37Z")

</div>

Hello,

I would like to ask for GET behavior in elasticsearch.  
I am using kibana dev tools

Let say i am creating a new index to elasticsearch

```
PUT /customers/my_test/0001
{
  "name": "For testing purpose"
}

```

run GET /customers will return index mapping and settings

then i run GET

```
GET /customers/_mapping/my_test
{
  "dynamic": "strict"
}

```

and it return ack true, and when i run GET /customers  
`"my_test": { "dynamic": "strict",`

Why i am able to update index using GET with body?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 3, 2017, 6:02am UTC](https://discuss.elastic.co/t/get-mapping-with-body-update-index-mapping/110035/2 "2017-12-03T06:02:25Z")

</div>

It’s “a bug” in Kibana.

When you provide a body to a GET request, Kibana Dev tool changes it to POST.

If you do the same GET with curl you will see that it does not behave the same way.

---

<div class="post-metadata">

**Author:** ![tremk](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tremk](https://discuss.elastic.co/u/tremk)\
**Post date:** [December 3, 2017, 11:18am UTC](https://discuss.elastic.co/t/get-mapping-with-body-update-index-mapping/110035/3 "2017-12-03T11:18:49Z")

</div>

ah make sense then.  
should i fill a bug report for it?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 3, 2017, 10:57pm UTC](https://discuss.elastic.co/t/get-mapping-with-body-update-index-mapping/110035/4 "2017-12-03T22:57:02Z")

</div>

No.

It’s just that you should not GET a mapping with a body.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 31, 2017, 10:57pm UTC](https://discuss.elastic.co/t/get-mapping-with-body-update-index-mapping/110035/5 "2017-12-31T22:57:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
