# Importing collection breaks forks

**URL:** <https://community.postman.com/t/importing-collection-breaks-forks/33007>\
**Category:** Help Hub\
**Tags:** collections, fork-and-merge\
**Created:** [February 28, 2022, 8:59am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007 "2022-02-28T08:59:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [February 28, 2022, 8:59am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/1 "2022-02-28T08:59:38Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
When I import a updated collection my forks breaks.  
How do I fix the connection ?

_Details (like screenshots)_:

_How I found the problem_:  
I created a collection, forked it to the same workspace, exported the source collection.  
Edited the file ( mass edit API version ), imported it with the same name.  
Now my fork link is broken and I can’t update them from the imported source.

_I’ve already tried_:  
Created a fresh new collection and tested it 2 times with the same result.

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [March 1, 2022, 4:43am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/2 "2022-03-01T04:43:48Z")

</div>

Hi Daniel! Welcome to the Postman community! 😄

When importing a collection that has a naming conflict, you should see a popup that asks if you’d like to import as a copy or replace.

When you replace, that means the old collection is deleted and replaced with this new one which is why the fork link would be broken.

---

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [March 1, 2022, 7:37am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/3 "2022-03-01T07:37:34Z")

</div>

Hello, thanks for the reply.  
So if I get a updated API from my vendor I need to redo all forks I have for testing ?

KR  
Daniel

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [March 1, 2022, 9:27pm UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/4 "2022-03-01T21:27:48Z")

</div>

So I would say the recommended workflow for this would be to update the API definition in Postman and then update the associated collections which means you won’t lose existing fork links.  
Check out [this article](https://blog.postman.com/latest-updates-to-syncing-your-specs-with-collections/) for more details.

Hope this helps! 😄

---

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [March 2, 2022, 7:39am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/5 "2022-03-02T07:39:11Z")

</div>

Ops I see that I used the wrong name, I meant that I get a collection JSON file sent to me to import.

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [March 2, 2022, 7:52pm UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/6 "2022-03-02T19:52:26Z")

</div>

I believe the process would still be the same in this case.  
You would have to update your collection and then pull changes from your forks.

---

<div class="post-metadata">

**Author:** ![danielsoderlund](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@danielsoderlund](https://community.postman.com/u/danielsoderlund)\
**Post date:** [March 3, 2022, 9:02am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/7 "2022-03-03T09:02:35Z")

</div>

Only way I can see if I manually compare and update the collection. If I import the file it breaks as you confirmed.

---

<div class="post-metadata">

**Author:** ![telecoms-cosmonaut-3](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@telecoms-cosmonaut-3](https://community.postman.com/u/telecoms-cosmonaut-3)\
**Post date:** [December 14, 2022, 6:22am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/8 "2022-12-14T06:22:05Z")

</div>

I have a similar predicament. I have forked a very large collection. I intend to export the forked collection so I can search and replace strings and then import it back.

When I do this I cannot import into the forked collection, Postman targets the source. Is there a way to import back into the forked collection?

---

<div class="post-metadata">

**Author:** ![akokkinn](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@akokkinn](https://community.postman.com/u/akokkinn)\
**Post date:** [January 26, 2023, 9:38am UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/9 "2023-01-26T09:38:32Z")

</div>

Same as @telecoms-cosmonaut-3.

I would like to update the **fork collection** and not the source.

Any idea how to do that?

---

<div class="post-metadata">

**Author:** ![satellite-geoscien23](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@satellite-geoscien23](https://community.postman.com/u/satellite-geoscien23)\
**Post date:** [September 21, 2023, 1:53pm UTC](https://community.postman.com/t/importing-collection-breaks-forks/33007/10 "2023-09-21T13:53:10Z")

</div>

Work around for this is Import collection as copy. Select and delete every thing in the fork (shift-click works). Select and cut-^X everything in the copy. Paste in the fork. the only thing which does not get moved are collection scripts, variables, description.
