Update contact fuzzy-merge settings
curl --request PUT \
--url https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"candidateLimit": 100,
"thresholdPercent": 92,
"reviewThresholdPercent": 75,
"customFields": [
{
"field": "address.streetAddress",
"weight": 20,
"matchMode": "fuzzy_string"
}
],
"lookupTriggerFields": [
"email",
"phoneNumber"
],
"instantMergeFields": [
"email"
]
}
'import requests
url = "https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings"
payload = {
"candidateLimit": 100,
"thresholdPercent": 92,
"reviewThresholdPercent": 75,
"customFields": [
{
"field": "address.streetAddress",
"weight": 20,
"matchMode": "fuzzy_string"
}
],
"lookupTriggerFields": ["email", "phoneNumber"],
"instantMergeFields": ["email"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
candidateLimit: 100,
thresholdPercent: 92,
reviewThresholdPercent: 75,
customFields: [{field: 'address.streetAddress', weight: 20, matchMode: 'fuzzy_string'}],
lookupTriggerFields: ['email', 'phoneNumber'],
instantMergeFields: ['email']
})
};
fetch('https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'candidateLimit' => 100,
'thresholdPercent' => 92,
'reviewThresholdPercent' => 75,
'customFields' => [
[
'field' => 'address.streetAddress',
'weight' => 20,
'matchMode' => 'fuzzy_string'
]
],
'lookupTriggerFields' => [
'email',
'phoneNumber'
],
'instantMergeFields' => [
'email'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings"
payload := strings.NewReader("{\n \"candidateLimit\": 100,\n \"thresholdPercent\": 92,\n \"reviewThresholdPercent\": 75,\n \"customFields\": [\n {\n \"field\": \"address.streetAddress\",\n \"weight\": 20,\n \"matchMode\": \"fuzzy_string\"\n }\n ],\n \"lookupTriggerFields\": [\n \"email\",\n \"phoneNumber\"\n ],\n \"instantMergeFields\": [\n \"email\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"candidateLimit\": 100,\n \"thresholdPercent\": 92,\n \"reviewThresholdPercent\": 75,\n \"customFields\": [\n {\n \"field\": \"address.streetAddress\",\n \"weight\": 20,\n \"matchMode\": \"fuzzy_string\"\n }\n ],\n \"lookupTriggerFields\": [\n \"email\",\n \"phoneNumber\"\n ],\n \"instantMergeFields\": [\n \"email\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"candidateLimit\": 100,\n \"thresholdPercent\": 92,\n \"reviewThresholdPercent\": 75,\n \"customFields\": [\n {\n \"field\": \"address.streetAddress\",\n \"weight\": 20,\n \"matchMode\": \"fuzzy_string\"\n }\n ],\n \"lookupTriggerFields\": [\n \"email\",\n \"phoneNumber\"\n ],\n \"instantMergeFields\": [\n \"email\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Contact fuzzy merge settings updated",
"data": {
"candidateLimit": 100,
"thresholdPercent": 92,
"reviewThresholdPercent": 75,
"customFields": [],
"lookupTriggerFields": [
"email",
"phoneNumber"
],
"instantMergeFields": [
"email"
],
"conflictResolutionRules": {}
}
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}Organizations
Update contact fuzzy-merge settings
Partially updates the fuzzy-merge configuration: numeric thresholds (0-100% or absolute), candidate limit (1-200), custom field rules (field path / weight / matchMode), lookup-trigger and instant-merge field lists, and per-field conflict resolution rules. All changes are validated against the merged configuration.
PUT
/
api
/
organizations
/
{organizationId}
/
contact-fuzzy-merge-settings
Update contact fuzzy-merge settings
curl --request PUT \
--url https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"candidateLimit": 100,
"thresholdPercent": 92,
"reviewThresholdPercent": 75,
"customFields": [
{
"field": "address.streetAddress",
"weight": 20,
"matchMode": "fuzzy_string"
}
],
"lookupTriggerFields": [
"email",
"phoneNumber"
],
"instantMergeFields": [
"email"
]
}
'import requests
url = "https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings"
payload = {
"candidateLimit": 100,
"thresholdPercent": 92,
"reviewThresholdPercent": 75,
"customFields": [
{
"field": "address.streetAddress",
"weight": 20,
"matchMode": "fuzzy_string"
}
],
"lookupTriggerFields": ["email", "phoneNumber"],
"instantMergeFields": ["email"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
candidateLimit: 100,
thresholdPercent: 92,
reviewThresholdPercent: 75,
customFields: [{field: 'address.streetAddress', weight: 20, matchMode: 'fuzzy_string'}],
lookupTriggerFields: ['email', 'phoneNumber'],
instantMergeFields: ['email']
})
};
fetch('https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'candidateLimit' => 100,
'thresholdPercent' => 92,
'reviewThresholdPercent' => 75,
'customFields' => [
[
'field' => 'address.streetAddress',
'weight' => 20,
'matchMode' => 'fuzzy_string'
]
],
'lookupTriggerFields' => [
'email',
'phoneNumber'
],
'instantMergeFields' => [
'email'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings"
payload := strings.NewReader("{\n \"candidateLimit\": 100,\n \"thresholdPercent\": 92,\n \"reviewThresholdPercent\": 75,\n \"customFields\": [\n {\n \"field\": \"address.streetAddress\",\n \"weight\": 20,\n \"matchMode\": \"fuzzy_string\"\n }\n ],\n \"lookupTriggerFields\": [\n \"email\",\n \"phoneNumber\"\n ],\n \"instantMergeFields\": [\n \"email\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"candidateLimit\": 100,\n \"thresholdPercent\": 92,\n \"reviewThresholdPercent\": 75,\n \"customFields\": [\n {\n \"field\": \"address.streetAddress\",\n \"weight\": 20,\n \"matchMode\": \"fuzzy_string\"\n }\n ],\n \"lookupTriggerFields\": [\n \"email\",\n \"phoneNumber\"\n ],\n \"instantMergeFields\": [\n \"email\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/organizations/{organizationId}/contact-fuzzy-merge-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"candidateLimit\": 100,\n \"thresholdPercent\": 92,\n \"reviewThresholdPercent\": 75,\n \"customFields\": [\n {\n \"field\": \"address.streetAddress\",\n \"weight\": 20,\n \"matchMode\": \"fuzzy_string\"\n }\n ],\n \"lookupTriggerFields\": [\n \"email\",\n \"phoneNumber\"\n ],\n \"instantMergeFields\": [\n \"email\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Contact fuzzy merge settings updated",
"data": {
"candidateLimit": 100,
"thresholdPercent": 92,
"reviewThresholdPercent": 75,
"customFields": [],
"lookupTriggerFields": [
"email",
"phoneNumber"
],
"instantMergeFields": [
"email"
],
"conflictResolutionRules": {}
}
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}{
"error": "Organization not found",
"details": "No organization exists with the provided id"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Required range:
1 <= x <= 200Required range:
0 <= x <= 100Required range:
0 <= x <= 100Optional absolute threshold; converted to thresholdPercent against the max possible score.
Required range:
x >= 0Optional absolute review threshold; converted to reviewThresholdPercent against the max possible score.
Required range:
x >= 0Show child attributes
Show child attributes
Response
Contact fuzzy merge settings updated
Available options:
true Show child attributes
Show child attributes
Example:
{
"candidateLimit": 50,
"thresholdPercent": 90,
"reviewThresholdPercent": 70,
"customFields": [
{
"field": "address.streetAddress",
"weight": 25,
"matchMode": "fuzzy_string"
}
],
"lookupTriggerFields": ["email", "phoneNumber"],
"instantMergeFields": ["email"],
"conflictResolutionRules": { "email": "prefer_newer" }
}
⌘I