Newer Version Available

This content describes an older version of this product. View Latest

Service Appointments

Create service appointments, assign resources, and generate leads. Service appointments can be created either with the parentRecordId or the lead but not both. Use lead to create service appointments with unauthenticated guest users.
Resource
Available version
48.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
JSON example
JSON example for unauthenticated user
Properties
Name Type Description Required or Optional Available Version
assignedResources Assigned Resource Input[] Service resource who is assigned to a service appointment.

When creating an appointment, you can use extendedFields to add values to any of the fields, including custom fields, in assignedResources as long as you have edit access to those fields.

Note

Optional 48.0
lead Lead Input[] Prospect or lead. Required if serviceAppointment isn’t provided 48.0
schedulingPolicyId String The ID of the AppointmentSchedulingPolicy object. If no scheduling policy is passed in the request body, the default configurations are used. The only scheduling policy configuration that is used in determining time slots is the enforcement of account visiting hours. Optional 48.0
serviceAppointment Service Appointment Input[] Appointment to complete a service work for a customer.

When creating an appointment, you can use extendedFields to add values to any of the fields, including custom fields, in serviceAppointment as long as you have edit access to those fields.

Note

Required if lead isn’t provided 48.0
Response body for POST
Service Appointment Output