Logo
30 Days of Postman exercises API Documentation

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-Key request header or apikey URL query parameter.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST 'https://api.getpostman.com/collections/merge' -H 'Content-Type: application/json' -d '{"strategy":"deleteSource","source":"undefined","destination":"undefined"}'

ENDPOINTS