Merge two contacts
merge.merge_contacts(MergeMergeContactsParams**kwargs) -> MergeMergeContactsResponse
POST/v1/contacts/merge
Merges two contacts into one. The primary contact retains its ID; the duplicate is soft-deleted.
Required scopes: contacts:update + contacts:delete
Rate limit category: Write
Merge two contacts
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
merge_merge_contacts_response = client.merge.merge_contacts(
duplicate_id="duplicateId",
primary_id="primaryId",
)
print(merge_merge_contacts_response.merge){
"merge": {
"id": "id",
"status": "status"
},
"primary": {
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
},
"summary": {
"fieldWriteCount": -9007199254740991,
"syncRepointedCount": -9007199254740991,
"warnings": [
"string"
]
}
}Returns Examples
{
"merge": {
"id": "id",
"status": "status"
},
"primary": {
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
},
"summary": {
"fieldWriteCount": -9007199254740991,
"syncRepointedCount": -9007199254740991,
"warnings": [
"string"
]
}
}