POST {{baseUrl}}/collections/merge
Merges a forked collection back into its parent collection. Include the following required properties in the request body: You can also include the following optional 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.
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"
}
} |
ENDPOINTS