# Adding property to index type getting deprecation warning

**URL:** <https://discuss.elastic.co/t/adding-property-to-index-type-getting-deprecation-warning/210405>\
**Category:** Elasticsearch\
**Created:** [December 3, 2019, 5:24pm UTC](https://discuss.elastic.co/t/adding-property-to-index-type-getting-deprecation-warning/210405 "2019-12-03T17:24:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmunnur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rmunnur/32/45283_2.png) [@rmunnur](https://discuss.elastic.co/u/rmunnur)\
**Post date:** [December 3, 2019, 5:24pm UTC](https://discuss.elastic.co/t/adding-property-to-index-type-getting-deprecation-warning/210405/1 "2019-12-03T17:24:02Z")

</div>

Can someone help me to understand this warning message while adding adding property to the index type  
PUT /mfrtestcase/\_mapping/index  
{  
"properties": {  
"mfrid": {  
"type": "integer"  
}  
}  
}

#! Deprecation: [types removal] Specifying types in put mapping requests is deprecated. To be compatible with 7.0, the mapping definition should not be nested under the type name, and the parameter include\_type\_name must be provided and set to false.  
{  
"acknowledged" : true  
}

---

<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, 2019, 5:24pm UTC](https://discuss.elastic.co/t/adding-property-to-index-type-getting-deprecation-warning/210405/2 "2019-12-31T17:24:09Z")

</div>

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