merge_objects
Combine duplicate genealogy records by merging two Gramps objects of the same type into one. Keeps the first handle as the survivor and absorbs the second.
Instructions
Merge two Gramps objects of the same type into one. Writes: merge.
handle1 (the "phoenix") survives; handle2 (the "titanic") is absorbed
and deleted. Supported obj_type values: person, family, event, place,
source, citation, repository, media, note. Person merges accept
{"family_merger": bool} in data; family merges accept
{"phoenix_father_handle", "phoenix_mother_handle"}. Requires edit+delete
permissions upstream. For duplicate handling of other object types, use
manage_* to probe first, then merge_objects to combine.
Args: obj_type: Object type to merge, e.g. "person" or "family". handle1: Handle that survives the merge (phoenix). handle2: Handle that is absorbed and deleted (titanic). data: Optional merge options dict (person/family specific). instance: Gramps Web base URL from get_instances; default = first.
Returns: dict: {"status", "url", "data": {}} on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| handle1 | Yes | ||
| handle2 | Yes | ||
| instance | No | ||
| obj_type | Yes |