type Unit {
accessDescription: string
additionalInformation: string
approximateAnnualAvailableNights: number
cadastral: string
code: string
currencyCode: string
dedicatedRental: boolean
editable: boolean
locationDescription: string
manualPricingEnabled: boolean
marketingTitle: string
marketingDescription: string
maxOccupants: number
numberOfBathrooms: number
numberOfBedrooms: number
sizeInSqm: number
spaceDescription: string
transitDescription: string
vat: number
editable: boolean
editableAddress: boolean
residential: boolean
belongsToMultiUnitGroup: boolean
coverImage: string
translations: Translation[] # See the building type
address: Address # See the building type
}
** For brevity most connection keys have been excluded - See Connections
Get unit
query {
spaces {
unit(unitId: ID) {
# Unit
}
}
}
In addition to the unit type data. You can also use the unitType subquery for accessing the list of unit type this unit belongs to. See Unit Types for more information.
Edit unit
mutation {
spaces {
units {
update(
unitId: ID
data: Unit
) {
# Unit
}
}
}
}
Delete unit
mutation {
spaces {
units {
delete(
unitId: ID
)
}
}
}