Postman API
  1. Collections
Postman API
  • API
    • Get all APIs
      GET
    • Create API
      POST
    • Delete an API
      DELETE
    • Single API
      GET
    • Update an API
      PUT
    • Get All API Versions
      GET
    • Create API Version
      POST
    • Delete an API Version
      DELETE
    • Get an API Version
      GET
    • Update an API Version
      PUT
    • Get contract test relations
      GET
    • Get documentation relations
      GET
    • Get environment relations
      GET
    • Get integration test relations
      GET
    • Get monitor relations
      GET
    • Get linked relations
      GET
    • Create relations
      POST
    • Create Schema
      POST
    • Get Schema
      GET
    • Update Schema
      PUT
    • Create collection from schema
      POST
    • Get test suite relations
      GET
    • Sync relations with schema
      PUT
  • Collections
    • All Collections
      GET
    • Create Collection
      POST
    • Create a Fork
      POST
    • Merge a Fork
      POST
    • Delete Collection
      DELETE
    • Single Collection
      GET
    • Update Collection
      PUT
  • Environments
    • All Environments
    • Create Environment
    • Delete Environment
    • Single Environment
    • Update Environment
  • Import
    • Import exported data
    • Import external API specification
  • User
    • API Key Owner
  • Mocks
    • All Mocks
    • Create Mock
    • Delete Mock
    • Single Mock
    • Update Mock
    • Publish Mock
    • Unpublish Mock
  • Monitors
    • All Monitors
    • Create Monitor
    • Delete Monitor
    • Single Monitor
    • Update Monitor
    • Run a Monitor
  • Webhooks
    • Create Webhook
  • Workspaces
    • All workspaces
    • Create Workspace
    • Delete Workspace
    • Single workspace
    • Update Workspace
  1. Collections

Merge a Fork

POST
/collections/merge
Collections
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 StrategyBehaviour
deleteSourceForked collection is deleted after merging
updateSourceWithDestinationForked 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.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.getpostman.com/collections/merge' \
--header 'Content-Type: application/json' \
--data-raw '{
    "destination": "{{destination_collection_uid}}",
    "source": "{{source_collection_uid}}",
    "strategy": "deleteSource"
}'
Response Response Example
{}

Request

Body Params application/json
destination
string 
optional
Example:
{{destination_collection_uid}}
source
string 
optional
Example:
{{source_collection_uid}}
strategy
string 
optional
Example:
deleteSource
Examples

Responses

🟢200Success
application/json
Body
object {0}
Previous
Create a Fork
Next
Delete Collection
Built with