A service appointment represents an appointment booked through Salesforce Scheduler. Make a PATCH request on the service-appointments Connect API to update a multi-resource service appointment.
Create a page where the user can review the appointment details and create the appointment. Here’s how a Review Service Appointment page can look.

Link the Next button to a PATCH request on the service-appointments Connect API to update the service appointment.
Resource URI
https://YOUR_INSTANCE.salesforce.com/services/data/vXX.X/connect/scheduling/service-appointments
Where YOUR_INSTANCE is a variable.
Sample Request
Update Service Resource
{
"serviceAppointmentId": "08pB0000000aJKhIAM",
"serviceAppointment": {
"schedStartTime": "2021-10-04T17:00:00.000+0000",
"schedEndTime": "2021-10-04T18:00:00.000+0000",
"serviceTerritoryId": "0HhB0000000TaHOKA0"
},
"assignedResources": [
{
"serviceResourceId": "0HnB0000000TavDKAS",
"isRequiredResource": true,
"isPrimaryResource": true
},
{
"serviceResourceId": "0HnB0000000DynTKAS",
"isRequiredResource": true,
"isPrimaryResource": false
}
]
}
Create a page to show confirmation when the service appointment is modified successfully.
Here’s how a sample confirmation page can look.
