repair_import_custom_values
Admins only. Re-applies the custom values of an earlier import_leads run to the right leads. Runs before the fix of 11.11.2026 could attach custom values to the wrong lead of the same run (insert order). Reads the original rows of the run (import log), matches each row to a lead CREATED BY THAT RUN by e-mail, otherwise title + phone, otherwise a unique title, and sets exactly the row's custom values (fields the row left empty are cleared). Core lead columns are not touched. PREVIEW BY DEFAULT; commit=true writes. Later manual changes to those custom values are overwritten — re-apply them afterwards.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "repair_import_custom_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | No | true writes. Default false = preview. | |
| run_id | Yes | The import run (list_import_runs). |