HigherData / Tool
changes.restore
Build a new pending-approval restore set from applied changes. Merge restores rebuild the losing record under a new ID; they cannot reverse a merge.
Scopes: crm: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/changes.restore?execute=false. The same call is POST /api/v1/changes/restore?execute=false.
MCP tool name: changes_restore. It is in the default MCP catalog when your scopes allow it.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Change set id. UUID. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
| sharedCompanies | array | no | Up to five records whose shared domain needs a company choice. At most 5 items. |
| sharedCompanyCount | integer | no | From 0 to 500. |
| dryRun | boolean | yes | |
| changeSet | value | yes | |
| proposals | array | yes | At most 4000 items. |
| samples | array | no | At most 5 items. |
| scannedRecords | integer | no | From 0 to 500. |
| changedRecords | integer | no | From 0 to 500. |
| summary | string | no | At most 512 characters. |
| enrichmentReasons | object | no | |
| matchedRecords | integer | yes | From 0 to 500. |
| nextCursor | string or null | yes |
Request
curl -sS -X POST "https://higherdata.io/api/v1/tools/changes.restore?execute=false" \
-H "Authorization: Bearer hd_example_replace_me" \
-H "Content-Type: application/json" \
-d '{
"id": "00000000-0000-4000-8000-000000008501"
}'SDK
import { HigherData } from "higherdata-sdk";
const higherdata = new HigherData({
apiKey: "hd_example_replace_me",
apiUrl: "https://higherdata.io",
});
const result = await higherdata.call("changes.restore", {
"id": "00000000-0000-4000-8000-000000008501"
}, { execute: false });Example
{
"input": {
"id": "00000000-0000-4000-8000-000000008501"
},
"output": {
"dryRun": true,
"changeSet": null,
"proposals": [
{
"id": "00000000-0000-4000-8000-000000008502",
"objectType": "companies",
"externalId": "10",
"kind": "fill_blank",
"operation": "field",
"field": "city",
"before": null,
"after": "Toronto",
"reason": "Fill an empty field from HigherData Core.",
"provenance": {
"source": "higherdata_core"
},
"fromChangeId": null
}
],
"nextCursor": null,
"matchedRecords": 0
}
}