Update contact
civicrm_update_contactUpdate specific fields on a single CiviCRM contact by ID using APIv4. Pass contact ID and key-value pairs for field updates, including custom fields via dot-notation.
Instructions
Update fields on a single CiviCRM contact by id. Requires CIVICRM_ALLOW_WRITES=true.
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": {
"id": "<id>",
"values": "<values>"
},
"name": "civicrm_update_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Contact id to update. | |
| values | Yes | APIv4 field → value map. Use dot-notation for custom fields, e.g. 'CustomGroup.field_name'. |