# Kibana dashboard import API not working from API export

**URL:** <https://discuss.elastic.co/t/kibana-dashboard-import-api-not-working-from-api-export/208961>\
**Category:** Kibana\
**Created:** [November 21, 2019, 6:18pm UTC](https://discuss.elastic.co/t/kibana-dashboard-import-api-not-working-from-api-export/208961 "2019-11-21T18:18:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sdndude](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sdndude/32/24608_2.png) [@sdndude](https://discuss.elastic.co/u/sdndude)\
**Post date:** [November 22, 2019, 12:23am UTC](https://discuss.elastic.co/t/kibana-dashboard-import-api-not-working-from-api-export/208961/6 "2019-11-22T00:23:06Z")

</div>

Thanks @Larry_Gregory , but I must be missing something here. Running 7.4.2 and using the example above in DevTools (with my own id of course) gives me this:

```auto
#! Deprecation: [types removal] Specifying types in document index requests is deprecated, use the typeless endpoints instead (/{index}/_doc/{id}, /{index}/_doc, or /{index}/_create/{id}).
{
  "_index" : "api",
  "_type" : "saved_objects",
  "_id" : "_export",
  "_version" : 6,
  "result" : "updated",
  "_shards" : {
    "total" : 2,
    "successful" : 1,
    "failed" : 0
  },
  "_seq_no" : 5,
  "_primary_term" : 1
}

```

I was expecting back the json of the exported dashboard (and all of the other stuff). If I try searching that index I get back the exact object text that I sent.

If I try it on the command line thusly:

```auto
curl -X POST -H 'kbn-xsrf: true' http://localhost:5601/api/saved_objects/_export -d '
{ 
   "objects": 
          [
            {
              "type": "dashboard",
              "id": "7298b6d0-0cbb-11ea-9d6a-8958e35fe94b"  
            }
          ],
   "includeReferencesDeep": true
} '

```

I get the following error:

```auto
{"statusCode":400,"error":"Bad Request","message":"\"{ \"objects\": [{\"type\": \"dashboard\",\"id\": \"7298b6d0-0cbb-11ea-9d6a-8958e35fe94b\" }],\"includeReferencesDeep\": true}\" is not allowed. \"value\" must contain at least one of [type, objects]","validation":{"source":"payload","keys":["&#x7b; &quot;objects&quot;: &#x5b;&#x7b;&quot;type&quot;: &quot;dashboard&quot;,&quot;id&quot;: &quot;7298b6d0-0cbb-11ea-9d6a-8958e35fe94b&quot; &#x7d; &#x5d;,&quot;includeReferencesDeep&quot;: true&#x7d;","value"]}}

```

So I am still messing with it. Thanks.

---

_[View the full topic](https://discuss.elastic.co/t/kibana-dashboard-import-api-not-working-from-api-export/208961)._
