Merge two constituents

Merge a duplicate into the record you keep.

POST https://cotlet.dev/api/v1/bloomerang/keeps/{keep_id}/constituents/merge

write Confirm

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

Parameters: merge_constituents
NameTypeDescription
keep_id integer required integer Constituent ID to keep.
merge_id integer required integer Constituent ID merged into it.

Request

cURL
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}'
Python
result = client.call("bloomerang", "merge_constituents", {"keep_id":48211,"merge_id":51987})
Node.js
const result = await cotlet.call('bloomerang', 'merge_constituents', {"keep_id":48211,"merge_id":51987});
CLI
cotlet call bloomerang merge_constituents --data '{"keep_id":48211,"merge_id":51987}'

Example response

JSON

{
  "kept_id": 48211,
  "merged_id": 51987,
  "name": "Lena Ortiz",
  "merged": true
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.