getOnSiteJobsDraftAppointmentById
Get a specific draft appointment by Kraken ID.
Arguments
The Kraken ID of the draft appointment to return.
Returns
OnSiteJobsDraftAppointmentTypeA draft appointment: the details of an appointment for which a timeslot has not been chosen yet, together with the customer's availability. Booking a timeslot creates an appointment with the same ID.
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.
query GetOnSiteJobsDraftAppointmentById($draftAppointmentId: UUID!) {
getOnSiteJobsDraftAppointmentById(draftAppointmentId: $draftAppointmentId) {
agent
bookingAm
bookingComments
bookingFriday
bookingMonday
bookingPm
bookingThursday
bookingTuesday
bookingWednesday
comments
commsStrategy
createdAt
externalJobTypeMapping {
...OnSiteJobsExternalJobTypeMappingTypeFragment
}
id
jobDetails
krakenWorkCategory
request {
...OnSiteJobsRequestTypeFragment
}
updatedAt
}
}
Variables
{
"draftAppointmentId": "1dfca10c-ce92-44cb-a153-af71cb6915c1"
}
Response
{
"data": {
"getOnSiteJobsDraftAppointmentById": {
"agent": "GENERIC_AGENT",
"bookingAm": true,
"bookingComments": "task-field-interesting-early-newspaper",
"bookingFriday": true,
"bookingMonday": true,
"bookingPm": true,
"bookingThursday": true,
"bookingTuesday": true,
"bookingWednesday": true,
"comments": "form-full-situation-what-once",
"commsStrategy": "SEND_ALL",
"createdAt": "1975-12-06T11:23:53.811565+00:00",
"externalJobTypeMapping": OnSiteJobsExternalJobTypeMappingType,
"id": "86143e14-72d8-47af-908e-f562a70f268f",
"jobDetails": {"key": "value"},
"krakenWorkCategory": "ACCURACY_TEST",
"request": OnSiteJobsRequestType,
"updatedAt": "2025-12-15T11:02:36.708976+00:00"
}
}
}