# Error : creation Dashboard with Curl Command ==\> Missing kbn-version header

**URL:** https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476
**Category:** Kibana
**Created:** [February 23, 2016, 9:30am UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476 "2016-02-23T09:30:42Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Diyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diyal/32/10110_2.png) [@Diyal](https://discuss.elastic.co/u/Diyal)
#### Post date: [February 23, 2016, 9:30am UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/1 "2016-02-23T09:30:42Z")

</div>

Hi,

I use Kibana version 4. So when i try to create new Dashboard, I have this message at the end :

{"statusCode":400,"error":"Bad Request","message":"Missing kbn-version header"}

Do you how can i put also the kbn-version header , please.

Thanks,

---

<div class="post-metadata">

### Author: ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)
#### Post date: [February 23, 2016, 2:11pm UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/2 "2016-02-23T14:11:06Z")

</div>

I've not seen that myself. Which version of Kibana 4 are you using... 4.1? 4.4? What exact steps do you take when this error appears? Could you attach a screenshot?

---

<div class="post-metadata">

### Author: ![Diyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diyal/32/10110_2.png) [@Diyal](https://discuss.elastic.co/u/Diyal)
#### Post date: [February 23, 2016, 3:29pm UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/3 "2016-02-23T15:29:04Z")

</div>

Sorry... I use Kibana 4.3.1 !! Creation directly in the Application are good, but I talk about CURL creation method.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/341ab93ce67febf43a3f923eaa22fc7013a77510.png)

---

<div class="post-metadata">

### Author: ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)
#### Post date: [February 23, 2016, 3:57pm UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/4 "2016-02-23T15:57:11Z")

</div>

I'm not sure there is a REST endpoint within the Kibana server itself for dashboard creation. However, it should be possible to add this object to the .kibana index by writing directly to Elasticsearch.

---

<div class="post-metadata">

### Author: ![rashid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashid/32/12566_2.png) [@rashid](https://discuss.elastic.co/u/rashid)
#### Post date: [February 23, 2016, 4:07pm UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/5 "2016-02-23T16:07:32Z")

</div>

You shouldn't be accessing the /elasticsearch endpoint in kibana. You can write directly to Elasticsearch itself.

Also, even with the kbn-version header, that URL would not accept a POST to write a dashboard, you need to write directly to the .kibana index.

---

<div class="post-metadata">

### Author: ![Diyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diyal/32/10110_2.png) [@Diyal](https://discuss.elastic.co/u/Diyal)
#### Post date: [February 23, 2016, 4:14pm UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/6 "2016-02-23T16:14:14Z")

</div>

Ok ,I thought for this Method..So I'm going to try directly on ES  
Thanks

---

<div class="post-metadata">

### Author: ![Diyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diyal/32/10110_2.png) [@Diyal](https://discuss.elastic.co/u/Diyal)
#### Post date: [February 24, 2016, 8:59am UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/7 "2016-02-24T08:59:09Z")

</div>

Hi all,

I have a little problem wtih My Curl Command.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/e8a8e28e74ed43773def71fea09c074310096c00.png)

So it means that there are unused Fields ??

Thanks

---

<div class="post-metadata">

### Author: ![theofpa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theofpa/32/96900_2.png) [@theofpa](https://discuss.elastic.co/u/theofpa)
#### Post date: [June 14, 2016, 7:04am UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/8 "2016-06-14T07:04:47Z")

</div>

It works if you add the Kibana version as a header in curl:

> -H "kbn-version: 4.4.1"

---

<div class="post-metadata">

### Author: ![Diyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diyal/32/10110_2.png) [@Diyal](https://discuss.elastic.co/u/Diyal)
#### Post date: [June 15, 2016, 9:34am UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/9 "2016-06-15T09:34:16Z")

</div>

Hi,

Now i use directly this curl api to input in ElasticSearch (9200 and not Kibana=\>5601) , much easier and usual.  
But it's right that this method is better too.

So thanks,  
Diyal

---

<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, 1:50pm UTC](https://discuss.elastic.co/t/error-creation-dashboard-with-curl-command-missing-kbn-version-header/42476/10 "2017-07-06T13:50:31Z")

</div>


