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.
Request Body
{"strategy"=>"{{mergeStrategy}}", "source"=>"{{sourceCollectionId}}", "destination"=>"{{destinationCollectionId}}"}
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"}}