set_privacy_state
Block, deactivate or anonymise a lead or contact — or set it back to active. IRREVERSIBLE for 'anonymised': the name, address and contact fields are overwritten and cannot be recovered, while ids, tenant, links and timestamps stay so the case remains countable. Because the audit trail records old AND new values, anonymising deliberately records only THAT it happened — otherwise the trail would be the copy that undoes the erasure. 'blocked' and 'deactivated' change no data; they stop any sending. All three states stop sending regardless of the tenant's enforcement switch.
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": {
"state": "<state>"
},
"name": "set_privacy_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | New privacy state; anonymised is irreversible | |
| reason | No | Reason (free text) | |
| lead_id | No | ID of the lead | |
| contact_id | No | ID of the contact | |
| confirm_irreversible | No | Required as true for state='anonymised'. Without it the call is refused — an irreversible erasure must not happen because someone passed the wrong string. |