Untag contacts
civicrm_untag_contactsRemove a specified tag from one or more contacts in a single API call. Supports tag by ID or name, with a limit of 500 contacts per call.
Instructions
Remove a tag from one or more contacts in a single call. Requires CIVICRM_ALLOW_WRITES=true AND CIVICRM_ALLOW_DELETES=true (EntityTag rows are hard-deleted).
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": {
"contact_ids": "<contact_ids>",
"tag": "<tag>"
},
"name": "civicrm_untag_contacts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Tag id (number) or tag name (string). Names are resolved to ids on the fly. | |
| contact_ids | Yes | Contact ids to tag. Bounded at 500 per call to keep one request bounded; chunk larger sets in the caller. |