startOnSiteJobsAppointmentBookingSessionForDraftAppointment
Start the appointment booking process for an on-site jobs draft appointment.
Arguments
Returns
StartOnSiteJobsAppointmentBookingSessionForDraftAppointmentOutput type of the startOnSiteJobsAppointmentBookingSessionForDraftAppointment mutation.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-13010: No booking adapter found for agent.
- KT-CT-13020: Could not identify agent from property.
- KT-CT-13021: Invalid job type.
- KT-CT-13022: Work category not found for job type.
- KT-CT-13023: Appointment booking checks failed.
- KT-CT-13024: Appointment booking checks returned warnings.
- KT-CT-13035: Request is inactive.
- KT-CT-13073: Job type not available for self-serve booking.
- KT-CT-13083: Draft appointment does not exist.
- KT-CT-7899: An internal error occurred.
Examples
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 StartOnSiteJobsAppointmentBookingSessionForDraftAppointment(
$draftAppointmentId: UUID!,
$overrideAppointmentCheckWarnings: Boolean
) {
startOnSiteJobsAppointmentBookingSessionForDraftAppointment(
draftAppointmentId: $draftAppointmentId,
overrideAppointmentCheckWarnings: $overrideAppointmentCheckWarnings
) {
appointmentBookingSessionId
}
}
Variables
{
"draftAppointmentId": "1c6f10ba-dea9-4a02-ac49-61de3f235de1",
"overrideAppointmentCheckWarnings": true
}
Response
{
"data": {
"startOnSiteJobsAppointmentBookingSessionForDraftAppointment": {
"appointmentBookingSessionId": "a2ee7365-31d6-47dd-87b6-57df316cd842"
}
}
}