# Importing dashboard to kibana Via api

**URL:** <https://discuss.elastic.co/t/importing-dashboard-to-kibana-via-api/334281>\
**Category:** Kibana\
**Tags:** saved-objects\
**Created:** [May 25, 2023, 7:04am UTC](https://discuss.elastic.co/t/importing-dashboard-to-kibana-via-api/334281 "2023-05-25T07:04:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Zeyad\_Elshater](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_zeyad_elshater/32/119684_2.png) [@\_Zeyad\_Elshater](https://discuss.elastic.co/u/_Zeyad_Elshater)\
**Post date:** [May 25, 2023, 7:04am UTC](https://discuss.elastic.co/t/importing-dashboard-to-kibana-via-api/334281/1 "2023-05-25T07:04:45Z")

</div>

When importing saved object to kibana through the Api, it changes the IDs of the saved object automatically, thus gives me error when trying to access some objects that I referenced with their ID number, how to avoid this overwriting issue

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [May 25, 2023, 8:36am UTC](https://discuss.elastic.co/t/importing-dashboard-to-kibana-via-api/334281/2 "2023-05-25T08:36:55Z")

</div>

Hi @_Zeyad_Elshater,

Can you share the specific error you are receiving on importing the saved object(s).

---

<div class="post-metadata">

**Author:** ![\_Zeyad\_Elshater](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_zeyad_elshater/32/119684_2.png) [@\_Zeyad\_Elshater](https://discuss.elastic.co/u/_Zeyad_Elshater)\
**Post date:** [May 25, 2023, 12:37pm UTC](https://discuss.elastic.co/t/importing-dashboard-to-kibana-via-api/334281/3 "2023-05-25T12:37:44Z")

</div>

@carly.richmond

![Screenshot 2023-05-25 153538](https://us1.discourse-cdn.com/elastic/original/3X/5/3/538966905de89f7314f54ca76f7b3cc52f175dca.png)

this is when I click on a link in my main dashboard that refernces to another dashboard

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [May 26, 2023, 9:38am UTC](https://discuss.elastic.co/t/importing-dashboard-to-kibana-via-api/334281/4 "2023-05-26T09:38:44Z")

</div>

Thanks for confirming. Which version of Elastic are you importing out of and into? Are they the same?

Can you share the API request you made to import the dashboard and the response as well? I would expect the request to fail for [missing references as per the docs](https://www.elastic.co/guide/en/kibana/current/saved-objects-api-import.html#saved-objects-api-import-example-4). I'm wondering if making use of the [resolve errors API](https://www.elastic.co/guide/en/kibana/current/saved-objects-api-resolve-import-errors.html#saved-objects-api-resolve-import-errors-example-2) will help.

---

<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:** [June 23, 2023, 9:39am UTC](https://discuss.elastic.co/t/importing-dashboard-to-kibana-via-api/334281/5 "2023-06-23T09:39:10Z")

</div>

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