HigherData / Tool
hygiene.configure
Read or save this space's duplicate rules, thresholds, and survivorship order. Dry run returns the settings and writes nothing.
Scopes: data:write
Send execute false to preview the change. Send execute true to write it. A preview does not change stored data.
REST: POST /api/v1/tools/hygiene.configure?execute=false. The same call is POST /api/v1/hygiene/configure?execute=false.
MCP tool name: hygiene_configure. It is in the default MCP catalog when your scopes allow it.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| rules | array | no | Duplicate rules and their thresholds. At most 13 items. |
| rules[]. | string | yes | Duplicate rule this space can run. One of: contacts:canonical-person, companies:canonical-account, companies:data_id, contacts:data_id, contacts:email, companies:domain, contacts:phone, contacts:name-account, contacts:name-company, companies:name-location, companies:name, contacts:name-domain, companies:brand. |
| rules[]. | boolean | yes | Whether this rule is on. |
| rules[]. | integer | yes | Lowest confidence, from 0 to 100, that this rule keeps. From 0 to 100. |
| survivorship | array | no | Order of sources used to pick the surviving value. Include every source once. 4 to 4 items. Each item: One of: activity, associations, created, id. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
| dryRun | boolean | yes | |
| rules | array | yes | At most 13 items. |
| survivorship | array | yes | 4 to 4 items. Each item: One of: activity, associations, created, id. |
Request
curl -sS -X POST "https://higherdata.io/api/v1/tools/hygiene.configure?execute=false" \
-H "Authorization: Bearer hd_example_replace_me" \
-H "Content-Type: application/json" \
-d '{
"rules": [
{
"rule": "contacts:email",
"enabled": true,
"minConfidence": 99
}
],
"survivorship": [
"created",
"activity",
"associations",
"id"
]
}'SDK
import { HigherData } from "higherdata-sdk";
const higherdata = new HigherData({
apiKey: "hd_example_replace_me",
apiUrl: "https://higherdata.io",
});
const result = await higherdata.call("hygiene.configure", {
"rules": [
{
"rule": "contacts:email",
"enabled": true,
"minConfidence": 99
}
],
"survivorship": [
"created",
"activity",
"associations",
"id"
]
}, { execute: false });Example
{
"input": {
"rules": [
{
"rule": "contacts:email",
"enabled": true,
"minConfidence": 99
}
],
"survivorship": [
"created",
"activity",
"associations",
"id"
]
},
"output": {
"dryRun": true,
"rules": [
{
"rule": "contacts:canonical-person",
"enabled": true,
"minConfidence": 100
},
{
"rule": "companies:canonical-account",
"enabled": true,
"minConfidence": 100
},
{
"rule": "companies:data_id",
"enabled": true,
"minConfidence": 100
},
{
"rule": "contacts:data_id",
"enabled": true,
"minConfidence": 100
},
{
"rule": "contacts:email",
"enabled": true,
"minConfidence": 99
},
{
"rule": "companies:domain",
"enabled": true,
"minConfidence": 95
},
{
"rule": "contacts:phone",
"enabled": true,
"minConfidence": 92
},
{
"rule": "contacts:name-account",
"enabled": true,
"minConfidence": 78
},
{
"rule": "contacts:name-company",
"enabled": true,
"minConfidence": 74
},
{
"rule": "companies:name-location",
"enabled": true,
"minConfidence": 74
},
{
"rule": "companies:name",
"enabled": true,
"minConfidence": 74
},
{
"rule": "contacts:name-domain",
"enabled": true,
"minConfidence": 70
},
{
"rule": "companies:brand",
"enabled": true,
"minConfidence": 68
}
],
"survivorship": [
"created",
"activity",
"associations",
"id"
]
}
}