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
UNIT_TYPE | Default | Possible Values |
---|---|---|
APARTMENT | NO_INFORMATION |
|
HOUSE | NO_INFORMATION |
|
PARKING | NO_INFORMATION |
|
OFFICE | OFFICE |
|
STORE | STORE |
|
GASTRONOMY | CAFE |
|
INDUSTRY | HALL |
|
SPECIAL PURPOSE | SPECIAL_ESTATE |
|
Other enum fields
ENUM | Default | Possible Value |
---|---|---|
UNIT_TYPE | APARTMENT |
|
UNIT_CATEGORY | RESIDENTIAL |
|
ENERGY_PERFORMANCE_CERTIFICATE_AVAILABILITY | AVAILABLE_AT_VIEWING |
|
ENERGY_CERTIFICATE_CREATION_DATE |
| |
BUILDING_ENERGY_RATING_TYPE |
| |
ENERGY_EFFICIENCY_CLASS |
| |
YES_NO_BYAPPOINTMENT | NO_INFORMATION |
|
COMMERCIAL_UNIT_FLOORTYPE | NO_INFORMATION |
|
AMENITIES_CONDITION | WELL_KEPT |
|
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