Units Mutation
Create or update properties in Everreal
Mutation Types
Mutations are responsible to insert or update a specific register, the operation insert or update is defined by externalId
, in case this unit was imported previously, this mutation will updated the resource, otherwise will create the unit.
Here are details on the capabilities of different mutations
The
upsertUnit
mutation is used to create or update a unit in Everreal system and unit added to the system cannot be modified by Everreal and if needs to be modified it should be done via the same endpoint itself.The
deleteUnit
mutation is used to delete the unit relation with the external integration source, doing this will not delete the unit but instead it will remain as a detached unit from integration and can be modified using Everreal.
Schema Definition
items with ! notation are required
Enum table maps
Field sub_type
use the following table
APARTMENT
NO_INFORMATION
NO_INFORMATION
| APARTMENT
| STUDIO
| GROUND_FLOOR
| TERRACE_APARTMENT
| PENTHOUSE
| MAISONETTE
| LOFT
| ROOM
| HOUSE
| ATTIC_FLOOR
| SOUTERRAIN
| MEZZANINE
HOUSE
NO_INFORMATION
SINGLE_FAMILY_HOUSE
| MID_TERRACE_HOUSE
| END_TERRANCE_HOUSE
| MULTI_FAMILY_HOUSE
| BUNGALOW
| FARMHOUSE
| SEMIDETACHED_HOUSE
| MANSION
| TOWN_HOUSE
| SPECIAL_REAL_ESTATE
| NO_INFORMATION
PARKING
NO_INFORMATION
GARAGE
| OUTSIDE_PARKING_SPOT
| CARPORT
| DUPLEX
| PARKING_GARAGE
| UNDERGROUND_PARKING
| NO_INFORMATION
OFFICE
OFFICE
LOFT
| STUDIO
| OFFICE
| OFFICE_FLOOR
| OFFICE_CENTER
| OFFICE_STORAGE_BUILDING
| SURGERY
| SURGERY_FLOOR
| SURGERY_BUILDING
| COMMERCIAL_CENTER
| LIVING_AND_COMMERICAL_BUILDING
| OFFICE_AND_COMMERICAL_BUILDING
STORE
STORE
SHOWROOM_SPACE
| SHOPPING_CENTER
| FACTORY_OUTLET
| DEPARTMENT_STORE
| KIOSK
| STORE
| SELF_SERVICE_MARKET
| SALES_AREA
| SALES_HALL
GASTRONOMY
CAFE
BAR_LOUNGE
| CAFE
| CLUB_DISCO
| GUESTHOUSE
| TAVERN
| HOTEL
| HOTEL_RESIDENCE
| HOTEL_GARNI
| PENSION
| RESTAURANT
| BUNGALOW
INDUSTRY
HALL
SHOWROOM_SPACE
| HALL
| HIGH_LACK_STORAGE
| INDUSTRY_HALL
| COLD_STORAGE
| MULTIDECK_CABINET_STORAGE
| STORAGE_WITH_OPEN_AREA
| STORAGE_AREA
| STORAGE_HALL
| SERVICE_AREA
| SHIPPING_STORAGE
| REPAIR_SHOP
SPECIAL PURPOSE
SPECIAL_ESTATE
RESIDENCE
| FARM
| HORSE_FARM
| VINEYARD
| REPAIR_SHOP
| LEISURE_FACILITY
| SPECIAL_ESTATE
| COMMERCIAL_CENTER
| INDUSTRIAL_AREA
Other enum fields
UNIT_TYPE
APARTMENT
APARTMENT
| HOUSE
| PARKING
| OFFICE
| STORE
| GASTRONOMY
| INDUSTRY
| SPECIAL_PURPOSE
| LAND
UNIT_CATEGORY
RESIDENTIAL
COMMERCIAL
| RESIDENTIAL
ENERGY_PERFORMANCE_CERTIFICATE_AVAILABILITY
AVAILABLE_AT_VIEWING
AVAILABLE
| AVAILABLE_AT_VIEWING
| NOT_REQUIRED
ENERGY_CERTIFICATE_CREATION_DATE
BEFORE_01_MAY_2014
| FROM_01_MAY_2014
BUILDING_ENERGY_RATING_TYPE
ENERGY_REQUIRED
| ENERGY_CONSUMPTION
ENERGY_EFFICIENCY_CLASS
NO_INFORMATION
| A_PLUS
| A
| B
| C
| D
| E
| F
| G
| H
YES_NO_BYAPPOINTMENT
NO_INFORMATION
YES
| NO
| BY_APPOINTMENT
| NO_INFORMATION
COMMERCIAL_UNIT_FLOORTYPE
NO_INFORMATION
CONCRETE
| EPOXY_RESIN
| TILES
| PLANKS
| LAMINATE
| PARQUET
| PVC
| CARPET
| ANTISTATIC_FLOOR
| OFFICE_CARPET
| STONE
| CUSTOMIZABLE
| WITHOUT
| NO_INFORMATION
AMENITIES_CONDITION
WELL_KEPT
FIRST_TIME_USE
| FIRST_TIME_USE_AFTER_REFURBISHMENT
| AS_GOOD_AS_NEW
| REFURBISHED
| UPGRADED
| FULLY_RENOVATED
| WELL_KEPT
| IN_NEED_OF_RENOVATION
| NEGOTIABLE
| DILAPIDATED
Below we are providing a full example how to create or update a unit, all this information is not required, only the ones that was using ! notation previously.
Last updated