Skip to main content
Nowledge Mem

Preview an entity merge

POST
/entities/{entity_id}/merge/preview

Preview moving a duplicate Entity into a canonical target, including mention and custom-relation consolidation.

Path Parameters

entity_id*string

Source entity id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/entities/string/merge/preview" \  -H "Content-Type: application/json" \  -d '{    "target_entity_id": "string"  }'
{  "can_merge": true,  "counts": {    "communities": 0,    "incoming_relations": 0,    "labels": 0,    "mentions": 0,    "outgoing_relations": 0  },  "duplicate_mentions": 0,  "duplicate_relations_removed": 0,  "self_relations_removed": 0,  "source": {    "aliases": [      "string"    ],    "description": "string",    "entity_type": "string",    "id": "string",    "name": "string"  },  "target": {    "aliases": [      "string"    ],    "description": "string",    "entity_type": "string",    "id": "string",    "name": "string"  }}