Skip to content

overrideBookingStatus

Mutation

Override the status on a booking.

An override can be used to move a booking from any status to any other status. To override a booking without a space to a booking with a space, both areaId and spaceId must be provided.

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

mutation {
overrideBookingStatus(
organisationId: UUID!
bookingId: ID!
statusId: UUID
fields: [FieldDataInput!]
formSubmissions: [FormSubmissionInput!]
areaId: UUID
spaceId: UUID
time: Timestamp
duration: Int
statusReference: BookingStatusEntityRefInput
): Void
}
ArgumentTypeDefaultDescription
organisationId*UUID!—The ID of the organisation
bookingId*ID!—The ID of the booking
statusIdUUID—The ID of the status to be updated to.
fields[FieldDataInput!]—An array of inputs containing new or updated field data
formSubmissions[FormSubmissionInput!]—An array of inputs containing new or updated form submissions
areaIdUUID—The ID of the area to be booked to
spaceIdUUID—The ID of the space to be booked to
timeTimestamp—The time to be assigned to the booking
durationInt—The duration of the booking
statusReferenceBookingStatusEntityRefInput—An status reference input containing new or updated field data

Void (Void)

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