# Post bulk Json -Error

**URL:** <https://discuss.elastic.co/t/post-bulk-json-error/91761>\
**Category:** Elasticsearch\
**Created:** [July 4, 2017, 11:53am UTC](https://discuss.elastic.co/t/post-bulk-json-error/91761 "2017-07-04T11:53:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tals](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Tals](https://discuss.elastic.co/u/Tals)\
**Post date:** [July 4, 2017, 11:53am UTC](https://discuss.elastic.co/t/post-bulk-json-error/91761/1 "2017-07-04T11:53:29Z")

</div>

Hi  
**I tried to post this Json** :  
POST /Sky/external/\_bulk?pretty  
{"Index":{"ID":1}}  
{ "altitde": 11887.2,  
"callsign": "ABX2040 ",  
"heading": 75.43,  
"icao24": "aa5b9f",  
"latitde": 40.0233,  
"longitde": -80.3336,  
"on\_grond": "False",  
"origin\_contry": "nited States",  
"sensors": "None",  
"time\_position": 1499164197,  
"time\_velocity": 1499164197,  
"velocity": 270.02,  
"vertical\_rate": 0}  
{"Index":{"ID":2}}  
{ "altitde": 10972.8,  
"callsign": "",  
"heading": 191.74,  
"icao24": "842194",  
"latitde": "None",  
"longitde": "None",  
"on\_grond": "False",  
"origin\_contry": "Japan",  
"sensors": "None",  
"time\_position": "None",  
"time\_velocity": 1499164181,  
"velocity": 199.67,  
"vertical\_rate": 0}  
**And Got this Error when Execute:**  
"type": "illegal\_argument\_exception",  
"reason": "Action/metadata line [1] contains an unknown parameter [ID]"

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [July 4, 2017, 12:03pm UTC](https://discuss.elastic.co/t/post-bulk-json-error/91761/2 "2017-07-04T12:03:59Z")

</div>

The APIs are case sensitive and the key you need to use for the id of the document is `_id`. see [https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-bulk.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-bulk.html) for more information on the bulk format. the index operation should also be lowercased (should be `index`)

---

<div class="post-metadata">

**Author:** ![Tals](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Tals](https://discuss.elastic.co/u/Tals)\
**Post date:** [July 13, 2017, 9:15am UTC](https://discuss.elastic.co/t/post-bulk-json-error/91761/3 "2017-07-13T09:15:34Z")

</div>

Hi Thanks  
Got It!

---

<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 10, 2017, 9:15am UTC](https://discuss.elastic.co/t/post-bulk-json-error/91761/4 "2017-08-10T09:15:37Z")

</div>

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