Merge two constituents manually
POST
/api/constituents/merge
const url = 'https://example.com/api/constituents/merge';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"sourceConstituentId":"40000000-0000-0000-0000-000000000009","targetConstituentId":"40000000-0000-0000-0000-000000000004","mergeHouseholds":false,"fieldOverrides":{"firstName":"Sarah","lastName":"Jenkins","phone":"+17045550199","email":"[email protected]","addressStreet":"456 Oak Avenue","addressCity":"Concord","addressState":"NC","addressZip":"28025","dateOfBirth":"1988-04-15"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/constituents/merge \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sourceConstituentId": "40000000-0000-0000-0000-000000000009", "targetConstituentId": "40000000-0000-0000-0000-000000000004", "mergeHouseholds": false, "fieldOverrides": { "firstName": "Sarah", "lastName": "Jenkins", "phone": "+17045550199", "email": "[email protected]", "addressStreet": "456 Oak Avenue", "addressCity": "Concord", "addressState": "NC", "addressZip": "28025", "dateOfBirth": "1988-04-15" } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
sourceConstituentId
required
UUID (v4) of source constituent record to merge into target.
string format: uuid
Example
40000000-0000-0000-0000-000000000009targetConstituentId
required
UUID (v4) of target constituent record for merge operations.
string format: uuid
Example
40000000-0000-0000-0000-000000000004mergeHouseholds
Flag indicating whether source and target households should be merged.
boolean
Example
falsefieldOverrides
object
firstName
First or given name.
string
Example
SarahlastName
Last or family name.
string
Example
Jenkinsphone
E.164 formatted contact phone number.
string
Example
+17045550199email
addressStreet
Physical street address line.
string
Example
456 Oak AvenueaddressCity
City or municipality name.
string
Example
ConcordaddressState
Two-letter US state abbreviation.
string
Example
NCaddressZip
5-digit US ZIP postal code.
string
Example
28025dateOfBirth
Date of birth formatted as YYYY-MM-DD.
string format: date
Example
1988-04-15Responses
Section titled “Responses”Constituents merged successfully
Bad request
Unauthorized
Forbidden
Constituent not found