Create a ticket
happyfox_create_ticketOpen a new ticket on behalf of a contact (created if the email is new). Needs a category id (a public category), a subject and a message in text or html. HappyFox: POST /api/1.1/json/tickets/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | CC email addresses, as a comma-separated string. | |
| bcc | No | BCC email addresses, as a comma-separated string. | |
| html | No | Message in HTML (text or html is required). | |
| name | Yes | Contact name. | |
| tags | No | Tags, as a comma-separated string. | |
| text | No | Message in plain text (text or html is required). | |
| Yes | Contact email address. | ||
| phone | No | Contact phone number. | |
| subject | Yes | Ticket subject. | |
| assignee | No | Agent id to assign the ticket to (from happyfox_list_staff); null to unassign. | |
| category | Yes | The category (happyfox_list_categories; must be public) id. | |
| due_date | No | Due date, yyyy-mm-dd or dd/mm/yyyy. | |
| priority | No | Priority id (happyfox_list_priorities); defaults to the default priority. | |
| custom_fields | No | Custom field values keyed "t-cf-<id>" / "c-cf-<id>". Ticket (t-cf-) and contact (c-cf-) fields; required ones must be present. Values: text = string, number = number, dropdown = choice id, multiple choice = array of choice ids, date = yyyy-mm-dd. | |
| visible_only_staff | No | true = private ticket, visible to staff only. |