pickTimeslotForOnSiteJobsAppointment
Pick a timeslot for an appointment that requires one. Used to complete a booking made via the WITHOUT_DATE_OR_TIME booking mode.
Arguments
Returns
PickTimeslotForOnSiteJobsAppointmentPick a timeslot for an appointment that requires one. Used to complete a booking made via the WITHOUT_DATE_OR_TIME booking mode.
Possible Errors
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-13001: Appointment does not exist.
- KT-CT-13019: Vendor not found.
- KT-CT-13025: Booking session has expired.
- KT-CT-13027: Booking system error occurred.
- KT-CT-13030: Booking session not found.
- KT-CT-13033: Slot not found.
- KT-CT-13036: Booking service currently unavailable.
- KT-CT-13043: Cannot update appointment as it has terminal status.
- KT-CT-13044: Failed to update appointment slot.
- KT-CT-7899: An internal error occurred.
Allowed Viewers
Required Permissions
Can create on site jobs appointmentsQuery Complexity
6Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation PickTimeslotForOnSiteJobsAppointment(
$appointmentBookingSessionId: UUID!,
$slotId: UUID!
) {
pickTimeslotForOnSiteJobsAppointment(
appointmentBookingSessionId: $appointmentBookingSessionId,
slotId: $slotId
) {
onSiteJobsAppointment {
...OnSiteJobsAppointmentTypeFragment
}
}
}
Variables
{
"appointmentBookingSessionId": "35cd901a-cc60-41c9-b705-c3e1b62ba1d7",
"slotId": "d9107ec8-d676-45dc-bf39-64c40ff8116d"
}
Response
{
"data": {
"pickTimeslotForOnSiteJobsAppointment": {
"onSiteJobsAppointment": OnSiteJobsAppointmentType
}
}
}