Skip to main content

Arguments

draftAppointmentId : UUID! required

The Kraken ID of the draft appointment to return.

Returns

OnSiteJobsDraftAppointmentType

A 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.

Allowed Viewers

Customer Partner User Third party

Query Complexity

1

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

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" } } }