Create a contact
happyfox_create_contactCreate a contact. HappyFox treats this as create-or-edit keyed on email: if the email already exists that contact is updated, and any contact custom field NOT passed is reset — use happyfox_update_contact to edit an existing contact. HappyFox: POST /api/1.1/json/users/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Contact name. | |
| Yes | Contact email address. | ||
| phones | No | Phone numbers. | |
| custom_fields | No | Custom field values keyed "c-cf-<id>". Contact fields (happyfox_list_contact_custom_fields); required ones must be present. Values: text = string, number = number, dropdown = choice id, multiple choice = array of choice ids, date = yyyy-mm-dd. |