Create service ticket
create_service_ticketOpens a Contractor Foreman service ticket for a customer, with optional project and scheduled date/time, so you can log repair requests as scheduled or unscheduled jobs.
Instructions
Opens a service ticket for a customer, optionally scheduled for a date and time.
Creates a Contractor Foreman service ticket for a customer from the Directory: title, description, an optional project and the planned service date and time. The service address is the customer's (or the project's). With a date it is Scheduled, without one Unscheduled. Technicians are assigned in the app. The customer is not notified. Returns the saved ticket, with service_time on the 12-hour clock (02:00 PM).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| project_id | No | Links the ticket to a project. The service address is then the project's. | |
| customer_id | Yes | A customer's contact_id (list_contacts type customer). | |
| description | No | What the customer reported. | |
| service_date | No | Planned visit, YYYY-MM-DD. The ticket is then Scheduled. | |
| service_time | No | Planned time on the 24-hour clock, like 13:30. |