# Import api doesn't like exported objects

**URL:** <https://discuss.elastic.co/t/import-api-doesnt-like-exported-objects/238380>\
**Category:** Kibana\
**Created:** [June 24, 2020, 5:38am UTC](https://discuss.elastic.co/t/import-api-doesnt-like-exported-objects/238380 "2020-06-24T05:38:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mykael](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mykael](https://discuss.elastic.co/u/mykael)\
**Post date:** [June 24, 2020, 5:38am UTC](https://discuss.elastic.co/t/import-api-doesnt-like-exported-objects/238380/1 "2020-06-24T05:38:44Z")

</div>

I'm trying to use the saved object import api to load some objects into Kibana (so I don't have to do it manually every time I reset ELK after I've stuffed up). I've got the file going in, but it doesn't seem to like the format of the ndjson file the interactive export produced. Looks like it's missing a type wrapper or something...

I did try the export api to see if it would give me the data in a more acceptable format, but that's another post...

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [June 24, 2020, 7:20am UTC](https://discuss.elastic.co/t/import-api-doesnt-like-exported-objects/238380/2 "2020-06-24T07:20:00Z")

</div>

Hi

Could you provide a such a import file so we could have a look? Which version of Kibana are you using?

Thanks and best,  
Matthias

---

<div class="post-metadata">

**Author:** ![mykael](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mykael](https://discuss.elastic.co/u/mykael)\
**Post date:** [June 25, 2020, 5:39am UTC](https://discuss.elastic.co/t/import-api-doesnt-like-exported-objects/238380/3 "2020-06-25T05:39:30Z")

</div>

I'm using 7.8. Given another thread, my problem may have been I was directly the request to ElasticSearch (9200) rather than Kibana (5601). I'll sort that out and see if this is still a problem.

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [June 25, 2020, 10:07am UTC](https://discuss.elastic.co/t/import-api-doesnt-like-exported-objects/238380/4 "2020-06-25T10:07:01Z")

</div>

Have a look here

[https://www.elastic.co/guide/en/kibana/7.8/saved-objects-api.html](https://www.elastic.co/guide/en/kibana/7.8/saved-objects-api.html)

Best,  
Matthias

---

<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 23, 2020, 10:07am UTC](https://discuss.elastic.co/t/import-api-doesnt-like-exported-objects/238380/5 "2020-07-23T10:07:13Z")

</div>

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