Reply to a ticket as an agent
happyfox_add_staff_replyAdd an agent reply to a ticket and/or change its status, priority, assignee, due date or tags. The contact is emailed ONLY if update_customer is true (HappyFox default: false). With no message it just updates properties. Moving to a completed status may require the category's compulsory custom fields. HappyFox: POST /api/1.1/json/ticket//staff_update/.
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 | Reply in HTML. | |
| tags | No | Tags to set, as a comma-separated string. | |
| staff | Yes | The agent making the reply (happyfox_list_staff) id. | |
| status | No | New status id (happyfox_list_statuses). | |
| subject | No | Override the subject of the email sent to the contact. | |
| assignee | No | Agent id to assign the ticket to (from happyfox_list_staff); null to unassign. | |
| due_date | No | Due date, yyyy-mm-dd or dd/mm/yyyy. | |
| priority | No | New priority id (happyfox_list_priorities). | |
| plaintext | No | Reply in plain text. | |
| time_spent | No | Minutes to add to the ticket's time spent (some categories require it). | |
| send_survey | No | true = send the satisfaction survey. | |
| custom_fields | No | Custom field values keyed "t-cf-<id>". Ticket fields (ids from happyfox_list_ticket_custom_fields); compulsory-on-completion fields are required when closing. Values: text = string, number = number, dropdown = choice id, multiple choice = array of choice ids, date = yyyy-mm-dd. | |
| ticket_number | Yes | The ticket NUMBER (the `id` field, e.g. 3 for #DC00000003) — not the prefixed display id. | |
| update_customer | No | true = send the reply to the contact by email. Default false. |