Skip to content

setBookingFields

Mutation

Update a booking with field overrides. Does not respect required/not required fields, and can only be done by the location.

If the organisation specified is the carrier, you need the ParticipateCarrierBookings permission. If the organisation specified is the location, you need the ParticipateLocationBookings permission. The specified location must also be the carrier.

mutation {
setBookingFields(
organisationId: UUID!
bookingId: ID!
fields: [FieldDataInput!]
fieldReferences: [FieldDataEntityRefInput!]
): Void
}
ArgumentTypeDefaultDescription
organisationId*UUID!The ID of the organisation
bookingId*ID!The ID of the booking
fields[FieldDataInput!]An array of inputs containing field data details for the given booking
fieldReferences[FieldDataEntityRefInput!]An array of inputs containing field data reference details for the given booking

Void (Void)

mutation SetBookingFields($organisationId: UUID!, $bookingId: ID!, $fields: [FieldDataInput!], $fieldReferences: [FieldDataEntityRefInput!]) {
setBookingFields(organisationId: $organisationId, bookingId: $bookingId, fields: $fields, fieldReferences: $fieldReferences)
}