Merge a Fork
POST https://api.getpostman.com/collections/merge
This endpoint allows you to merge a forked collection back to its destination collection.
On successful creation of the collection, the response returns the collection name, id and uid.
You need to specify the fork UID (as source) and destination collection UID (as destination) in the request body.
Optionally, you can also specify the merge strategy as either deleteSource or updateSourceWithDestination. Following is an explanation of the merge strategies
| Merge Strategy | Behaviour |
|---|---|
| deleteSource | Forked collection is deleted after merging |
| updateSourceWithDestination | Forked collection is up to date with changes in destination collection |
If the collections cannot be merged (due to conflicts), appropriate error messages will be returned.
Requires API Key as
X-Api-Keyrequest header orapikeyURL query parameter.
Request Body
{"strategy"=>"deleteSource", "source"=>"{{source_collection_uid}}", "destination"=>"{{destination_collection_uid}}"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |