createOnSiteJobsAppointment
Create an Appointment.
Arguments
Possible Errors
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-13001: Appointment does not exist.
- KT-CT-13006: No properties found for the given supply points.
- KT-CT-13019: Vendor not found.
- KT-CT-13025: Booking session has expired.
- KT-CT-13027: Booking system error occurred.
- KT-CT-13028: Agent not found.
- KT-CT-13030: Booking session not found.
- KT-CT-13031: Timeslot is no longer available.
- KT-CT-13032: Request does not exist.
- KT-CT-13033: Slot not found.
- KT-CT-13034: Appointment already exists for this request.
- KT-CT-13035: Request is inactive.
- KT-CT-13036: Booking service currently unavailable.
- KT-CT-13037: Appointment reference not provided by booking service.
- KT-CT-13044: Failed to update appointment slot.
- KT-CT-13056: Appointment cannot be rescheduled.
- KT-CT-13063: Failed to derive property for the given supply points.
- KT-CT-13064: Provided supply point(s) not supported by the On-Site Jobs market manager.
- 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 CreateOnSiteJobsAppointment(
$appointmentBookingSessionId: UUID!,
$slotId: UUID!
) {
createOnSiteJobsAppointment(
appointmentBookingSessionId: $appointmentBookingSessionId,
slotId: $slotId
) {
onSiteJobsAppointment {
...OnSiteJobsAppointmentTypeFragment
}
}
}
Variables
{
"appointmentBookingSessionId": "b8fbb54a-3fa6-48e5-9f03-202a6c3f81e6",
"slotId": "c3d4a267-4073-407c-b953-cdce08426379"
}
Response
{
"data": {
"createOnSiteJobsAppointment": {
"onSiteJobsAppointment": OnSiteJobsAppointmentType
}
}
}