Skip to content

createBooking

Mutation

Create a new booking. Booking must align with the configuration as defined by the location.

Bookings created via this mutation are subject to approval by the booking engine.

mutation {
createBooking(
organisationId: UUID!
booking: BookingInput
bookingEntityRef: BookingEntityRefInput
): ID!
}
ArgumentTypeDefaultDescription
organisationId*UUID!The ID of the organisation making the request.
bookingBookingInputDetails of the requested booking.
bookingEntityRefBookingEntityRefInputDetails of the requested booking. The EntityRef parameter variant is able to omit some Mobiledock UUIDs in favour of entity names.

ID (ID!)

mutation CreateBooking($organisationId: UUID!, $booking: BookingInput, $bookingEntityRef: BookingEntityRefInput) {
createBooking(organisationId: $organisationId, booking: $booking, bookingEntityRef: $bookingEntityRef) {
}
}