Skip to content

overrideBookingStatus

Mutation

Override the status on a booking.

With a few exceptions, an override can be used to move a booking from any status to any other status. An override can be used to move a booking from a status with a space, to a status without. However, an override cannot be used to move a booking from a status without a space, to a status with a space. A space must be assigned with the assignBookingSpace call first.

When overriding a status, all fields can be considered optional.

mutation {
overrideBookingStatus(
organisationId: UUID!
bookingId: ID!
statusId: UUID
fields: [FieldDataInput!]
formSubmissions: [FormSubmissionInput!]
statusReference: BookingStatusEntityRefInput
): Void
}
ArgumentTypeDefaultDescription
organisationId*UUID!The ID of the organisation
bookingId*ID!The ID of the booking
statusIdUUIDThe ID of the status to be updated to. Can be any status, except status with a space when booking currently does not have a space
fields[FieldDataInput!]An array of inputs containing new or updated field data
formSubmissions[FormSubmissionInput!]An array of inputs containing new or updated form submissions
statusReferenceBookingStatusEntityRefInputAn status reference input containing new or updated field data

Void (Void)

mutation OverrideBookingStatus($organisationId: UUID!, $bookingId: ID!, $statusId: UUID, $fields: [FieldDataInput!], $formSubmissions: [FormSubmissionInput!], $statusReference: BookingStatusEntityRefInput) {
overrideBookingStatus(organisationId: $organisationId, bookingId: $bookingId, statusId: $statusId, fields: $fields, formSubmissions: $formSubmissions, statusReference: $statusReference)
}