Merge Entries

This API is used to merge entries. It is possible to merge multiple entries into one entry. The merged entries will be deleted and the references will be moved to the target entry. You can have up to 10 entries in the mergeEntries array. You can have up to 100 entries in the request. This means with one request you are able to merge up to 1000 entries.

Swagger

Swagger

Params

NameParamTypeTypeDescription
entryTypeIdpathint/stringThe entryTypeId or apiName of the object
overwriteEmptyValuesquerybooleanWhen 2 entries are merged this will migrate value from the deleted entry where the winning entry has a blank*
bodybodyarrayThe body of the request

*Note: overwriteEmptyValues only works when there are 2 entries being merged. If there are more than 2 entries being merged, no value is migrated.

Body

[
  {
    "entryId": 0,
    "mergeEntries": [0]
  }
]

Requests

An entryId is the entry that will be kept and the mergeEntries are the entries that will be deleted and the references will be moved to the target entry. All Ids must be unique in the request.

POST {{host}}/api/rest/v4/data/merge/{{entryTypeId}} HTTP/1.1
Authorization: {{auth}}
 
[
  {
    "entryId": 1,
    "mergeEntries": [2,3]
  },
    {
    "entryId": 4,
    "mergeEntries": [5,6]
  }
]