Skip to main content
POST
Merge selected duplicate candidates

Authorizations

Authorization
string
header
required

Send the API key as Authorization: Bearer <api_key>.

Path Parameters

duplicate_id
string
required

Body

application/json
person_ids
string[]
required

At least two distinct identifiers belonging to this pending review; selections outside the review or with fewer than two distinct existing records return 404.

Minimum array length: 2
Minimum string length: 1
canonical_person_id
string

Optional. The person to keep as the survivor. Must be one of person_ids (otherwise 422). When omitted, the strongest record is kept automatically.

Minimum string length: 1
national_id
string

Optional. Overrides the national ID the system would pick automatically from the candidates. Use to set a cédula detected in notes.

Minimum string length: 1
birth_date
string<date>

Optional when candidates have no conflict. Required when selected candidates have different known birth dates, and must match one of those dates. Automatic merges leave conflicting dates pending.

first_name
string

Optional. Must be sent together with last_name or not at all. Overrides the name the system would pick automatically — useful when records have scrambled or variant spellings.

Minimum string length: 1
last_name
string

Optional. Must be sent together with first_name or not at all.

Minimum string length: 1
location
string

Optional. Overrides the location the system would build automatically by combining candidate values.

Minimum string length: 1
found_notes
string

Optional. Overrides the notes the system would build automatically by combining candidate values.

Minimum string length: 1
description
string | null

Optional. Overrides the description the system would build automatically (including the "Otros reportes asociados" echo block). Pass null to leave the field empty on the unified profile.

Minimum string length: 1

Response

Updated duplicate review detail.

data
object
required