# Unable to use the Kibana Export Dashboards API

**URL:** <https://discuss.elastic.co/t/unable-to-use-the-kibana-export-dashboards-api/179472>\
**Category:** Kibana\
**Created:** [May 3, 2019, 6:03am UTC](https://discuss.elastic.co/t/unable-to-use-the-kibana-export-dashboards-api/179472 "2019-05-03T06:03:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erb/32/45420_2.png) [@erb](https://discuss.elastic.co/u/erb)\
**Post date:** [May 3, 2019, 6:03am UTC](https://discuss.elastic.co/t/unable-to-use-the-kibana-export-dashboards-api/179472/1 "2019-05-03T06:03:00Z")

</div>

Hi all,

I'm using ELK stak 6.7.1, and would like to use the /api/kibana/dashboards/export API.

Here is what I get when, using the Kibana UI, I export my dashboard:

```
[
  {
    "_id": "9d77ff30-6b55-11e9-9658-6d980bb4f1af",
    "_type": "dashboard",
    "_source": {
      "title": "cms pdt versions",
      "hits": 0,
      "description": "",
      "panelsJSON": "[{\"embeddableConfig\":{},\"gridData\":{\"x\":0,\"y\":0,\"w\":20,\"h\":11,\"i\":\"1\"},\"id\":\"49682390-6b53-11e9-9658-6d980bb4f1af\",\"panelIndex\":\"1\",\"type\":\"visualization\",\"version\":\"6.7.1\"},{\"embeddableConfig\":{},\"gridData\":{\"x\":20,\"y\":0,\"w\":28,\"h\":11,\"i\":\"2\"},\"id\":\"cc0fe750-6b54-11e9-9658-6d980bb4f1af\",\"panelIndex\":\"2\",\"type\":\"visualization\",\"version\":\"6.7.1\"},{\"gridData\":{\"x\":0,\"y\":11,\"w\":48,\"h\":11,\"i\":\"3\"},\"version\":\"6.7.1\",\"panelIndex\":\"3\",\"type\":\"search\",\"id\":\"93fc64c0-6b53-11e9-9658-6d980bb4f1af\",\"embeddableConfig\":{}}]",
      "optionsJSON": "{\"darkTheme\":false,\"hidePanelTitles\":false,\"useMargins\":true}",
      "version": 1,
      "timeRestore": false,
      "kibanaSavedObjectMeta": {
        "searchSourceJSON": "{\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"filter\":[{\"meta\":{\"index\":\"9b901eb0-65aa-11e9-9658-6d980bb4f1af\",\"type\":\"phrase\",\"key\":\"version.keyword\",\"value\":\"3.7.14\",\"params\":{\"query\":\"3.7.14\",\"type\":\"phrase\"},\"disabled\":false,\"negate\":false,\"alias\":null},\"query\":{\"match\":{\"version.keyword\":{\"query\":\"3.7.14\",\"type\":\"phrase\"}}},\"$state\":{\"store\":\"appState\"}}]}"
      }
    }
  }
]

```

Then I guess that '9d77ff30-6b55-11e9-9658-6d980bb4f1af' is the ID of my dashboard that I should use in the Kibana API.

So I try:

```
$ curl -XGET http://vspar-elk-web-01.afp.com:5601/api/kibana/dashboards/export?dashboard=9d77ff30-6b55-11e9-9658-6d980bb4f1af
{
  "version": "6.7.1",
  "objects": [
    {
      "id": "9d77ff30-6b55-11e9-9658-6d980bb4f1af",
      "type": "dashboard",
      "error": {
        "statusCode": 404,
        "message": "Not found"
      }
    }
  ]
}
$

```

Always get "404 - Not found".  
What am I doing wrong ?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![erb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erb/32/45420_2.png) [@erb](https://discuss.elastic.co/u/erb)\
**Post date:** [May 3, 2019, 3:00pm UTC](https://discuss.elastic.co/t/unable-to-use-the-kibana-export-dashboards-api/179472/2 "2019-05-03T15:00:19Z")

</div>

I tried the same export request on another host, after upgrade to stack 7.0.1.  
Worked fine here.

I will upgrade and 6.7.1 cluster to 7.0.1, and see if it's better.

Will let you know ...

---

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [May 3, 2019, 6:16pm UTC](https://discuss.elastic.co/t/unable-to-use-the-kibana-export-dashboards-api/179472/3 "2019-05-03T18:16:15Z")

</div>

Thanks for the update Erick. The initial problem on 6.7.1 may be related to security if you have security enabled, the requesting user may be unauthenticated or privileged.

---

<div class="post-metadata">

**Author:** ![erb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erb/32/45420_2.png) [@erb](https://discuss.elastic.co/u/erb)\
**Post date:** [May 3, 2019, 8:33pm UTC](https://discuss.elastic.co/t/unable-to-use-the-kibana-export-dashboards-api/179472/4 "2019-05-03T20:33:12Z")

</div>

Security is not enabled, no authentication required to access data via Kibana.

---

<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:** [May 31, 2019, 8:33pm UTC](https://discuss.elastic.co/t/unable-to-use-the-kibana-export-dashboards-api/179472/5 "2019-05-31T20:33:23Z")

</div>

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