# Bulk data using curl command without a json file

**URL:** <https://discuss.elastic.co/t/bulk-data-using-curl-command-without-a-json-file/56965>\
**Category:** Elasticsearch\
**Created:** [August 2, 2016, 6:58am UTC](https://discuss.elastic.co/t/bulk-data-using-curl-command-without-a-json-file/56965 "2016-08-02T06:58:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveenscs](https://avatars.discourse-cdn.com/v4/letter/n/b19c9b/32.png) [@naveenscs](https://discuss.elastic.co/u/naveenscs)\
**Post date:** [August 2, 2016, 6:58am UTC](https://discuss.elastic.co/t/bulk-data-using-curl-command-without-a-json-file/56965/1 "2016-08-02T06:58:47Z")

</div>

Hi,

I am trying to send bulk data using curl command but I am getting an error when this is being tried:

curl -XPUT '[http://localhost:9200/nav/een/\_bulk](http://localhost:9200/nav/een/_bulk)' --data-binary '{ "index" : { "\_id" : "6" } } \n {"C":"E"} \n { "index" : { "\_id" : "7" } } \n {"A":"V"} \n’

I do not want to use a json file but want to send the bulk data as mentioned above.

Error:  
{"error":{"root\_cause":[{"type":"action\_request\_validation\_exception","reason":"Validation Failed: 1: no requests added;"}],"type":"action\_request\_validation\_exception","reason":"Validation Failed: 1: no requests added;"},"status":400}

Regards  
Naveen S

---

<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 5, 2017, 10:30pm UTC](https://discuss.elastic.co/t/bulk-data-using-curl-command-without-a-json-file/56965/2 "2017-07-05T22:30:58Z")

</div>


