Merge Records
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/merge \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"primary_id": "<string>",
"duplicate_ids": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/merge"
payload = {
"primary_id": "<string>",
"duplicate_ids": ["<string>"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({primary_id: '<string>', duplicate_ids: ['<string>']})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/merge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));CRM objects
Merge Records
Merge duplicates into primary_id: its empty values are filled from them, and their links and history
move to it. The duplicates are then deleted.
POST
/
api
/
v1
/
crm
/
objects
/
{type_key}
/
records
/
merge
Merge Records
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/merge \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"primary_id": "<string>",
"duplicate_ids": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/merge"
payload = {
"primary_id": "<string>",
"duplicate_ids": ["<string>"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({primary_id: '<string>', duplicate_ids: ['<string>']})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/records/merge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));