# Import dashboard with new ID using API?

**URL:** <https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448>\
**Category:** Kibana\
**Created:** [April 28, 2021, 1:48am UTC](https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448 "2021-04-28T01:48:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [April 28, 2021, 1:48am UTC](https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448/1 "2021-04-28T01:48:06Z")

</div>

Hi,

I want to automatically add dashboards to a space. My dashboard are all the same except for a filter and the title.

I was thinking about using the import API and have a script change the filter and title values but I assume that importing a dashboard with an id that is the same as an existing dashboard will cause problems.

> **[Import dashboard API | Kibana Guide \[7.12\] | Elastic](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html)**

Is there any way to import a dashboard as a new dashboard?

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [April 28, 2021, 3:15am UTC](https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448/2 "2021-04-28T03:15:37Z")

</div>

Hi,

How many dashboards are we speaking about? Maybe there is a better way for this?

We solved a similar usecase by adding a markdown visualization with links:  
Dashboards can be given the filter in the URL so we configured the filter in the dashboard and copied the resulting URL and added it to the markdown visualization and added a description as title.  
In the dashboard, we added the markdown Viz on the top.

Now the user can use the links changing the filter without leaving the dashboard. For us, this means managing 1 dashboard instead of 5 for this single usecase.

Best regards  
Wolfram

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [April 28, 2021, 4:47am UTC](https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448/3 "2021-04-28T04:47:32Z")

</div>

I will have 150 ~ 200 dashboards. Technically the Controls visualization would work but due to user requirements I need separate dashboards. I also want to avoid having to manually add or edit anything in Kibana.

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [April 28, 2021, 4:51am UTC](https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448/4 "2021-04-28T04:51:19Z")

</div>

In this case, your way of exporting the dashboard and changing the filter and title should work as long as you change the ID. maybe you should set the ID to the name of the dashboard so the IDs do not collide within Kibana.

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [April 28, 2021, 8:33am UTC](https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448/5 "2021-04-28T08:33:13Z")

</div>

Ah the id can anything you want? I will give that a try. Would be great if that works.

---

<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:** [May 26, 2021, 8:34am UTC](https://discuss.elastic.co/t/import-dashboard-with-new-id-using-api/271448/6 "2021-05-26T08:34:02Z")

</div>

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