# Yet another issue using Kibana API to import Dashboard

**URL:** https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088
**Category:** Kibana
**Created:** [October 19, 2021, 12:23pm UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088 "2021-10-19T12:23:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![skiefer](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@skiefer](https://discuss.elastic.co/u/skiefer)
#### Post date: [October 19, 2021, 12:23pm UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/1 "2021-10-19T12:23:10Z")

</div>

I've read thru all the previous posts on the subject, and every google result I can find, but still can't get this running. I was provided a json file of Dashboard configuration to load into my environment.

Kibana version: 6.7.1

this is the command I'm running:

curl -k -XPOST '[http://localhost:5601/api/kibana/dashboards/import](http://localhost:5601/api/kibana/dashboards/import)' -H 'Content-Type: application/json' -H "kbn-xsrf: true" -d Dashboards\_6.x.json

This is my error:

Error: {{"statusCode":400,"error":"Bad Request","message":"Invalid request payload JSON format"}

Some posts have said the @ is required before the json filename, so when I try that, i get the following error:

{"statusCode":400,"error":"Bad Request","message":""value" must be an object","validation":{"source":"payload","keys":["value"]}}

Help!! thanks in advance!

---

<div class="post-metadata">

### Author: ![Tre\_Seymour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tre_seymour/32/46507_2.png) [@Tre\_Seymour](https://discuss.elastic.co/u/Tre_Seymour)
#### Post date: [October 19, 2021, 5:15pm UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/2 "2021-10-19T17:15:00Z")

</div>

Hello @skiefer Is it possible to upgrade to a newer version?

---

<div class="post-metadata">

### Author: ![skiefer](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@skiefer](https://discuss.elastic.co/u/skiefer)
#### Post date: [October 19, 2021, 5:17pm UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/3 "2021-10-19T17:17:27Z")

</div>

I thought about that, but it seems like this functionality should be supported. Upgrade seemed like a pretty big task, let me look thru those instructions again.

---

<div class="post-metadata">

### Author: ![Tre\_Seymour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tre_seymour/32/46507_2.png) [@Tre\_Seymour](https://discuss.elastic.co/u/Tre_Seymour)
#### Post date: [October 19, 2021, 6:05pm UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/4 "2021-10-19T18:05:25Z")

</div>

Ok, well I know you're on 6.7.1. What kind of host(s) are you running this on?  
Also, what are the status pages returning?

---

<div class="post-metadata">

### Author: ![skiefer](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@skiefer](https://discuss.elastic.co/u/skiefer)
#### Post date: [October 19, 2021, 6:35pm UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/5 "2021-10-19T18:35:17Z")

</div>

Running on Ubuntu. Status page shows Green.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 19, 2021, 10:08pm UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/6 "2021-10-19T22:08:28Z")

</div>

> [@skiefer](#):
>
> I was provided a json file of Dashboard configuration to load into my environment.

From where? What does it look like?

> [@skiefer](#):
>
> Kibana version: 6.7.1

FYI that's [EOL](https://www.elastic.co/support/eol), so technically unsupported.

---

<div class="post-metadata">

### Author: ![skiefer](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@skiefer](https://discuss.elastic.co/u/skiefer)
#### Post date: [October 21, 2021, 11:10am UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/7 "2021-10-21T11:10:04Z")

</div>

OK, got the system updated to the latest version and was able to do the import using the ndjson file and importing thru the Kibana UI. Thanks for the help.

---

<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: [November 18, 2021, 11:10am UTC](https://discuss.elastic.co/t/yet-another-issue-using-kibana-api-to-import-dashboard/287088/8 "2021-11-18T11:10:39Z")

</div>

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