Add contact to group
civicrm_add_contact_to_groupWRITE: adds ONE contact to ONE static group. If the group is used as a mailing list, the contact will receive future mailings sent to it, so only add people who agreed. Sends nothing by itself. Adding a contact who is already in the group changes nothing; a contact who was removed from it (or is pending) is set back to Added. APIv4 GroupContact.save matched on group and contact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_id | Yes | Group id (from civicrm_list_groups). | |
| contact_id | Yes | CiviCRM contact id. |