Appointment
Update an appointment
Update and return an appointment for the specified business id, branch id and appointment id
put/api/business/{businessId}/branch/{branchId}/appointment/{appointmentId}
Path parameters
businessIdstring required
branchIdstring required
appointmentIdstring required
Query parameters
force_selected_timeboolean
force an appointment to be moved at selected time
Request body
Example request
{
"appointmentId": "ab123",
"version": 1,
"appointmentDate": "2018-01-01",
"startTime": "09:00:00",
"endTime": "09:30:00",
"price": 40,
"staffId": "staffid",
"roomId": "roomid",
"machineId": "machineid",
"confirmed": true,
"serviceId": "service123"
}Response
Appointment updated successfully
Example response
{
"appointmentId": "ab123",
"version": 1,
"appointmentDate": "2018-01-01",
"startTime": "09:00:00",
"endTime": "09:30:00",
"price": 40,
"staffId": "staffid",
"roomId": "roomid",
"machineId": "machineid",
"confirmed": true,
"serviceId": "serviceid",
"staffRequest": true,
"preferredStaff": true,
"clientId": "clientid",
"serviceRewardId": "servicerewardid",
"courseId": "courseId",
"courseName": "courseName",
"clientCourseId": "clientCourseId",
"clientCourseItemId": "clientcourseitemid",
"purchasingBranchId": "purchasingBranchId",
"serviceGroupItemOptionId": "servicegroupitemoptionid",
"serviceGroupId": "servicegroupid",
"parentServiceGroupId": "parentservicegroupid",
"serviceName": "serviceName",
"state": "BOOKED",
"activationState": "ACTIVE",
"depositAmount": 20,
"bookingId": "bookingid",
"source": "source",
"groupBookingId": "groupbookingid",
"deleted": true,
"notes": "This is a note about the appointment",
"internetServiceCategories": [
{
"id": "ab123",
"name": "Cut & Style"
}
],
"branchId": "X9QpRsZ3bSvhJAaakg9TXQ"
}