Skip to main content
POST
/
api
/
entities
/
merge
Merge entities into a target
curl --request POST \
  --url https://api.mentionlab.io/api/entities/merge \
  --header 'Content-Type: application/json' \
  --header 'x-project-id: <x-project-id>' \
  --data '
{
  "targetId": "3f29c1a4-1b2c-4e7d-9a8b-0c1d2e3f4a5b",
  "sourceIds": [
    "a1b2c3d4-e5f6-4789-90ab-cdef12345678",
    "b2c3d4e5-f6a7-4890-81bc-def234567890"
  ]
}
'

Headers

x-project-id
string
required

Project ID to specify the project context

Body

application/json
targetId
string
required

The entity ID to merge into (target).

Example:

"3f29c1a4-1b2c-4e7d-9a8b-0c1d2e3f4a5b"

sourceIds
array[]
required

Entity IDs to merge into the target (sources).

Example:
[
"a1b2c3d4-e5f6-4789-90ab-cdef12345678",
"b2c3d4e5-f6a7-4890-81bc-def234567890"
]

Response