Merge two constituents
Merge a duplicate into the record you keep.
POST https://cotlet.dev/api/v1/bloomerang/keeps/{keep_id}/constituents/merge
Combines the two records the way the Merge button does: you pick the record to keep, and information on the other that the keeper lacks is added. Read both with get_constituent first; the app shows what will be lost in red, and this call does not. Needs the Duplicate Constituents or Merge Constituents page, so an admin or a standard user with Data Tools. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| keep_id integer required | integer | Constituent ID to keep. |
| merge_id integer required | integer | Constituent ID merged into it. |
Request
curl -X POST https://cotlet.dev/api/v1/bloomerang/keeps/48211/constituents/merge \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"merge_id":51987}' result = client.call("bloomerang", "merge_constituents", {"keep_id":48211,"merge_id":51987}) const result = await cotlet.call('bloomerang', 'merge_constituents', {"keep_id":48211,"merge_id":51987}); cotlet call bloomerang merge_constituents --data '{"keep_id":48211,"merge_id":51987}' Example response
{
"kept_id": 48211,
"merged_id": 51987,
"name": "Lena Ortiz",
"merged": true
}