# Exporting/Importing Saved Objects in Kibana 7.1

**URL:** <https://discuss.elastic.co/t/exporting-importing-saved-objects-in-kibana-7-1/262410>\
**Category:** Kibana\
**Created:** [January 27, 2021, 7:22pm UTC](https://discuss.elastic.co/t/exporting-importing-saved-objects-in-kibana-7-1/262410 "2021-01-27T19:22:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colby\_Dozier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colby_dozier/32/46498_2.png) [@Colby\_Dozier](https://discuss.elastic.co/u/Colby_Dozier)\
**Post date:** [January 27, 2021, 7:22pm UTC](https://discuss.elastic.co/t/exporting-importing-saved-objects-in-kibana-7-1/262410/1 "2021-01-27T19:22:44Z")

</div>

We are stuck with 7.1 being the newest version of Kibana we can use in our environment. I'm attempting to import multiple saved objects that was exported by hand in Kibana into a JSON file. This would be done during standup of our AWS Cloudformation stack with a simple curl request hitting the import API while passing the exported JSON in, but I'm seeing this wasn't fleshed out until version 7.2 according to documentation. I see you can create an object with the 7.1 API, but the formatting of the exported saved objects is not valid for what that call expects. What's the easiest way to export after changes are made and import the exported JSON file automatically during standup?  
Thanks

---

<div class="post-metadata">

**Author:** ![corey.robertson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/corey.robertson/32/54611_2.png) [@corey.robertson](https://discuss.elastic.co/u/corey.robertson)\
**Post date:** [January 27, 2021, 8:06pm UTC](https://discuss.elastic.co/t/exporting-importing-saved-objects-in-kibana-7-1/262410/2 "2021-01-27T20:06:21Z")

</div>

Hi @Colby_Dozier

There is an [experimental api](https://www.elastic.co/guide/en/kibana/7.1/saved-objects-api-bulk-create.html) in 7.1 for bulk saved object import. The expected input for that does not match up with an exported object however, so you will likely have to do some massaging of your export to get it to match up to the expected input format.

---

<div class="post-metadata">

**Author:** ![Colby\_Dozier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colby_dozier/32/46498_2.png) [@Colby\_Dozier](https://discuss.elastic.co/u/Colby_Dozier)\
**Post date:** [January 27, 2021, 8:11pm UTC](https://discuss.elastic.co/t/exporting-importing-saved-objects-in-kibana-7-1/262410/3 "2021-01-27T20:11:45Z")

</div>

corey,  
Thanks for getting back to me. Is there any decent references for what the json (or probably ndjson) should look like that would include different types of saved objects?

Thanks

---

<div class="post-metadata">

**Author:** ![corey.robertson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/corey.robertson/32/54611_2.png) [@corey.robertson](https://discuss.elastic.co/u/corey.robertson)\
**Post date:** [January 27, 2021, 8:15pm UTC](https://discuss.elastic.co/t/exporting-importing-saved-objects-in-kibana-7-1/262410/4 "2021-01-27T20:15:59Z")

</div>

There are some [simple examples](https://www.elastic.co/guide/en/kibana/7.1/saved-objects-api-bulk-create.html#_examples_6) on that page I linked.

Example:

```auto
POST api/saved_objects/_bulk_create
[
  {
    "type": "index-pattern",
    "id": "my-pattern",
    "attributes": {
      "title": "my-pattern-*"
    }
  },
  {
    "type": "dashboard",
    "id": "my-dashboard",
    "attributes": {
      "title": "Look at my dashboard"
    }
  }
]

```

---

<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:** [February 24, 2021, 8:16pm UTC](https://discuss.elastic.co/t/exporting-importing-saved-objects-in-kibana-7-1/262410/5 "2021-02-24T20:16:13Z")

</div>

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