# Export / Import objects

**URL:** https://discuss.elastic.co/t/export-import-objects/185250
**Category:** Kibana
**Created:** [June 11, 2019, 5:22pm UTC](https://discuss.elastic.co/t/export-import-objects/185250 "2019-06-11T17:22:26Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [June 11, 2019, 5:22pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/1 "2019-06-11T17:22:26Z")

</div>

I have multiple space in kibana 7.1.1  
I would like to export dashboard and viz for each of this space using curl command.  
is it possible?

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [June 12, 2019, 2:35pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/2 "2019-06-12T14:35:15Z")

</div>

Use the [export API](https://www.elastic.co/guide/en/kibana/7.x/saved-objects-api-export.html) for exporting saved objects from spaces.

You must include `/s/{space_name}` in the URL to identify the space used for the API call.  
`http://localhost:5603/s/test/api/saved_objects/_export` is an example for the `test` space. Please see [https://www.elastic.co/blog/how-to-migrate-to-kibana-spaces](https://www.elastic.co/blog/how-to-migrate-to-kibana-spaces) for more details

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [June 12, 2019, 4:27pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/3 "2019-06-12T16:27:12Z")

</div>

@Nathan_Reese  
it works great I can find id of dashboard from web browser and use curl to export jason file.  
but can't find a curl syntax to display id of all the dashboard I have on that.  
if there is a way to find all the IDs I can setup script to automatically export all dashboard daily for as backup.

I am using 7.1.1  
and don't have /.kibana/dashboard present.

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [June 18, 2019, 2:02pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/4 "2019-06-18T14:02:39Z")

</div>

trying one more time if anyone has a command to display ID of dashboard

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [June 20, 2019, 7:30pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/5 "2019-06-20T19:30:54Z")

</div>

Looks like no one has try this before.

---

<div class="post-metadata">

### Author: ![Matheu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matheu/32/48655_2.png) [@Matheu](https://discuss.elastic.co/u/Matheu)
#### Post date: [June 24, 2019, 10:17am UTC](https://discuss.elastic.co/t/export-import-objects/185250/6 "2019-06-24T10:17:32Z")

</div>

I've received a message today (24th June 19) that there is no "\_export" endpoint...?

When I use:  
[https://www.elastic.co/guide/en/kibana/current/dashboard-import-api-import.html](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api-import.html) , and  
[https://www.elastic.co/guide/en/kibana/current/dashboard-import-api-export.html](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api-export.html)

{"error":"no handler found for uri [/api/kibana/dashboards/import?force=true] and method [POST]"}

same result from export... "no handler..."

FYI: I'm using the elasticsearch and kibana docker containers from DockerHub

---

<div class="post-metadata">

### Author: ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)
#### Post date: [June 28, 2019, 3:48pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/7 "2019-06-28T15:48:40Z")

</div>

Just a update. upgraded to 7.2 and now export is dumping this in to ndjason file.

When you select dashboard it does export all associated objects, index template/viz and dashboard.

I guess will have to do it manually from gui. untill find something that works from command line

---

<div class="post-metadata">

### Author: ![Matheu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matheu/32/48655_2.png) [@Matheu](https://discuss.elastic.co/u/Matheu)
#### Post date: [June 28, 2019, 4:24pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/8 "2019-06-28T16:24:25Z")

</div>

Hi, I have finally got this working as I want to, and my process is:

1. [http://localhost:5601/api/kibana/dashboards/export?dashboard=ea010](http://localhost:5601/api/kibana/dashboards/export?dashboard=ea010)......
2. From the result, save only the "objects " value, to a file.
3. Use the [http://localhost:5601/api/saved\_objects/\_bulk\_create?overwrite=true](http://localhost:5601/api/saved_objects/_bulk_create?overwrite=true)  
Remove invalid properties. Valid properties are : type, id, attributes, reference, and version

This creates a call that will create everything required (or overwrite) for you 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: [July 26, 2019, 4:24pm UTC](https://discuss.elastic.co/t/export-import-objects/185250/9 "2019-07-26T16:24:31Z")

</div>

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