mergeEntities
Merge a source entity into a target entity by repointing all relations, facts, and mentions to the target, then deleting the source row and logging an audit event.
Instructions
Merge source entity into target: repoints all relations, facts, and mentions from source to target, then removes the source entity row. Append-only: an entityMerged event is written to the audit log. Returns E_VALIDATION when source and target are the same uid, E_NOT_FOUND when either uid is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceEntityUid | Yes | ULID of the entity to absorb (will be deleted). Required. | |
| targetEntityUid | Yes | ULID of the surviving entity. Must differ from sourceEntityUid. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | AIP resource name of the surviving (target) entity. | |
| status | Yes | Always "merged" on success. |