# Auto generated id

**URL:** <https://discuss.elastic.co/t/auto-generated-id/11474>\
**Category:** Elasticsearch\
**Created:** [April 6, 2013, 6:16pm UTC](https://discuss.elastic.co/t/auto-generated-id/11474 "2013-04-06T18:16:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okamalo](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@okamalo](https://discuss.elastic.co/u/okamalo)\
**Post date:** [April 6, 2013, 6:16pm UTC](https://discuss.elastic.co/t/auto-generated-id/11474/1 "2013-04-06T18:16:12Z")

</div>

This is my first exploration for ES, I understand the id is auto generated if I did not user one,however here is what I get :  
curl -XPUT [http://localhost:9200/indextest/dns](http://localhost:9200/indextest/dns) -d ' {  
"url": "[www.cnn.com](http://www.cnn.com)",  
"domain": "[cnn.com](http://cnn.com)" }'  
No handler found for uri [/indextest/dns] and method [PUT]

however it works well when I use the id manually :  
curl -XPUT [http://localhost:9200/indextest/dns/1](http://localhost:9200/indextest/dns/1) -d ' {  
"url": "[www.cnn.com](http://www.cnn.com)",  
"domain": "[cnn.com](http://cnn.com)" }'  
{"ok":true,"\_index":"indextest","\_type":"dns","\_id":"1","\_version":1}

Am I missing something here?

---

<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:** [July 6, 2017, 2:42am UTC](https://discuss.elastic.co/t/auto-generated-id/11474/2 "2017-07-06T02:42:29Z")

</div>


