# \_type deprecated in 6.x?

**URL:** https://discuss.elastic.co/t/type-deprecated-in-6-x/167200
**Category:** Elasticsearch
**Created:** [February 6, 2019, 1:09am UTC](https://discuss.elastic.co/t/type-deprecated-in-6-x/167200 "2019-02-06T01:09:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)
#### Post date: [February 6, 2019, 1:09am UTC](https://discuss.elastic.co/t/type-deprecated-in-6-x/167200/1 "2019-02-06T01:09:19Z")

</div>

From the documents I learn that \_type is deprecated from 6.0.0. But when I use the following syntax:  
PUT my\_index/1 in elasticsearch 6.5, it returns with the following:  
{  
"error": "Incorrect HTTP method for uri [/my\_index/1?pretty] and method [PUT], allowed: [POST]",  
"status": 405  
}

So does this mean \_doc is still needed when creating a new document?

---

<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: [February 6, 2019, 2:03am UTC](https://discuss.elastic.co/t/type-deprecated-in-6-x/167200/2 "2019-02-06T02:03:14Z")

</div>

Yes. It's still needed.  
From 7.0 it will become optional (with some settings IIRC).

---

<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: [March 6, 2019, 2:03am UTC](https://discuss.elastic.co/t/type-deprecated-in-6-x/167200/3 "2019-03-06T02:03:16Z")

</div>

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