# Kibana REST API - saved pbjects import - createNewCopies

**URL:** <https://discuss.elastic.co/t/kibana-rest-api-saved-pbjects-import-createnewcopies/267952>\
**Category:** Kibana\
**Created:** [March 22, 2021, 7:54am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-pbjects-import-createnewcopies/267952 "2021-03-22T07:54:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [March 22, 2021, 7:54am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-pbjects-import-createnewcopies/267952/1 "2021-03-22T07:54:14Z")

</div>

Hi,  
I'm trying to use the flag "createNewCopies" in the saved\_objects import api. I am using Kibana 7.9.3.  
it is documented in:

> **[Import objects API | Kibana Guide \[7.x\] | Elastic](https://www.elastic.co/guide/en/kibana/7.x/saved-objects-api-import.html)**

but not implemented in the code...

How can I import and resolve a dashboard existing conflict? I want it to create a copy of the conflicted dashboards. This also doesn't work in the "Resolve import errors" api.

Thanks,  
Ranit

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 22, 2021, 9:45am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-pbjects-import-createnewcopies/267952/2 "2021-03-22T09:45:07Z")

</div>

You are looking at the wrong version of the docs.

These are the 7.9 docs (not mentioning this feature because it wasn't available back then): [Import objects API | Kibana Guide [7.9] | Elastic](https://www.elastic.co/guide/en/kibana/7.9/saved-objects-api-import.html)

In the 7.11 docs it is mentioned: [Import objects API | Kibana Guide [7.9] | Elastic](https://www.elastic.co/guide/en/kibana/7.9/saved-objects-api-import.html)

---

<div class="post-metadata">

**Author:** ![ranitg](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@ranitg](https://discuss.elastic.co/u/ranitg)\
**Post date:** [March 22, 2021, 10:03am UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-pbjects-import-createnewcopies/267952/3 "2021-03-22T10:03:30Z")

</div>

thanks for the link. in my link it only showed:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d65ee54f9a9dd9127d55b3f5b9e29d29fed6f13b.png)  
no 7.9 ...

OK, so is it possible for me to clone a dashboard somehow using the kibana rest api?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 22, 2021, 12:40pm UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-pbjects-import-createnewcopies/267952/4 "2021-03-22T12:40:22Z")

</div>

You have to click "other versions", then you can select 7.9

> OK, so is it possible for me to clone a dashboard somehow using the kibana rest api?

The easiest way is probably to export, change the ids in the ndjson file to something else using a script, then import again (besides updating your stack, there are a lot of new features in 7.11)

---

<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:** [April 19, 2021, 12:41pm UTC](https://discuss.elastic.co/t/kibana-rest-api-saved-pbjects-import-createnewcopies/267952/5 "2021-04-19T12:41:13Z")

</div>

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