Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Merge a fork

POST {{baseUrl}}/collections/merge

Merges a forked collection back into its parent collection. Include the following required properties in the request body:

  • source — A string value that contains the source collection's ID.

  • destination — A string value that contains the destination (parent) collection's ID.

You can also include the following optional properties in the request body:

  • strategy — A string value that contains the fork's merge strategy. One of:

    • deleteSource — Merge the changes into the parent collection. After the merge process is complete, Qodex deletes the fork. You must have Editor access to both the parent and forked collections.
    • updateSourceWithDestination — (Default) Merge the changes into the parent collection. Any differences in the parent collection are also made to the fork.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status OK

{ "collection": { "id": "12ece9e1-2abf-4edc-8e34-de66e74114d2", "uid": "12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2" } }



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

ENDPOINTS