A fork is a new instance of an element that you can change without making any changes to the parent element. In Postman, you can fork collections, environments, and flows. Forking enables you to contribute to an element without having Editor access for that element.
To fork a collection, environment, or flow within a public workspace, you must enable your public profile in your profile settings. For more information on making your profile public, see Making your profile public.
When you fork a Postman Collection, environment, or flow, you create a copy of it in a different workspace. You must sign in to Postman to create a fork.
To fork an element, do the following:
Select the element in the sidebar.
Select Fork in the upper right.
You can also create a fork by hovering over the element in the sidebar and selecting the more actions icon next to its name, then Create a Fork.
Enter a label for your fork, and select a workspace to save it to.
(Optional) If you are forking a collection, you can select one or more environments to fork and pin to the collection.
Select Fork Collection, Fork Environment, or Fork Flow.
Postman creates your fork in the selected workspace.
If there are any mocks or monitors associated with the parent element, they aren't linked to the forked element. You must create mocks and monitors specifically for the fork if you need them.
If a collection is in a public workspace that you haven't been added to, you won't be able to send a request within that workspace. To send requests or make changes to a collection, you must fork the collection into a personal workspace or a team workspace that you belong to.
To change a forked element's name or label, do the following:
Fork information shows details about forks and the users who have created them. You will be able to identify the users who are actively consuming and contributing to your APIs.
To view a list of users who have forked a collection, environment, or flow, select the number next to the fork icon .
To access the list of forks for a collection, environment, or flow, do the following:
Select the fork icon in the right sidebar.
Select the fork name under Forks.
You can also select the user's avatar under Forks to view the user's public profile.
Forked flows don't support pulling updates.
You can pull updates from a parent element into a fork without going through the pull request process.
Hover over the fork in the sidebar.
Select the more actions icon next to its name.
Select Pull changes.
Review the diff and select Pull changes.
To pull updates from a parent element during the pull request process, see Pulling updates during a pull request.
Forked flows don't support merging changes.
If you have Editor access on the element, you can merge a fork into the parent element without going through the pull request process. For example, if you're using forks in a personal workspace to organize your work, you can merge changes in a fork directly back into the parent element. If you're collaborating with others, though, merging directly lacks the safeguards built into the pull request process. Many teams require pull requests as part of their version control workflow.
To merge changes from a fork without opening a pull request, do the following:
Hover over the fork in the sidebar.
Select the more actions icon next to its name.
Select Merge changes.
Review the diff and select Merge all changes.
Select one of the following merge options:
Select Merge.
To merge changes during the pull request process, see Merging changes from a pull request.
Forked flows don't support resolving conflicts.
A merge conflict happens when you try to merge changes into an updated parent element and Postman isn't able to automatically resolve the differences between the two. If there's a conflict when you try to merge a fork, you'll need to decide how you want to resolve it before continuing.
Merge conflicts can involve changes in more than one workspace.
To resolve a merge conflict from a fork, do the following:
Begin the merge process described in Merge changes from a fork.
Select Pull the changes for any conflict.
For each conflict, choose the version you want to include when you merge. Select Keep Source to keep the change on the parent element. Select Keep Destination to keep the change on your fork. You can also select the version you want to keep for each conflict.
To keep all changes on your fork, select Keep all changes to source. To keep all changes on the parent element, select Keep all changes to destination.
After you resolve the conflicts, select Pull changes to pull the updates.
Last modified: 2023/10/20