# Post Json with mapping

**URL:** <https://discuss.elastic.co/t/post-json-with-mapping/191364>\
**Category:** Kibana\
**Created:** [July 19, 2019, 9:51am UTC](https://discuss.elastic.co/t/post-json-with-mapping/191364 "2019-07-19T09:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris4](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Chris4](https://discuss.elastic.co/u/Chris4)\
**Post date:** [July 19, 2019, 9:51am UTC](https://discuss.elastic.co/t/post-json-with-mapping/191364/1 "2019-07-19T09:51:28Z")

</div>

How can i insert a json and directly have new values mapped in correct format ?  
e.g. the field "amount" is not yet in my index and hence also not yet mapped. My index is having a lot of different values with a mapping already and i dont want to completely map all values new.  
How can i insert the document with telling how to map ? I want this json inserted with location as text and amount as numeric:

> POST index/\_doc  
> {  
> "location": "Germany",  
> "amount": "15",  
> }

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [July 19, 2019, 10:15am UTC](https://discuss.elastic.co/t/post-json-with-mapping/191364/2 "2019-07-19T10:15:21Z")

</div>

You just ingest data and Elasticseach will do the dynamic mapping: [https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-mapping.html)

---

<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:** [August 16, 2019, 10:15am UTC](https://discuss.elastic.co/t/post-json-with-mapping/191364/3 "2019-08-16T10:15:24Z")

</div>

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