Property Group Mutation

Create or update property groups in EverReal

Mutation Types

upsertPropertyGroup: Mutation is responsible for inserting or updating a specific register, the operation insert or update is defined by externalId, in case this property was imported previously, this mutation will updated the resource, otherwise will create the property.

type Mutation {
  upsertPropertyGroup(propertyGroup: PropertyGroupInput!): PropertyGroup!
}

Here are details on the capabilities of different mutations

  • The upsertPropertyGroup the mutation is used to create or update a property group in the EverReal system and property added to the system cannot be modified by Everreal and if needs to be modified it should be done via the same endpoint itself.

Schema Definition

items with ! notation are required

input PropertyGroupInput {
  name: String
  externalPropertyGroupId: String!
  descriptions: PropertyGroupDescriptionInput
}


input PropertyGroupDescriptionInput {
  object: String
  amenities: String
  location: String
  other: String
}

externalPropertyGroupId is required field, this is the key or the id which is used by the 3d party system(data synchronize between 3rd party)

Below we are providing a full example how to create or update a property, all this information is not required, only the ones that was using ! notation previously.

mutation {
  upsertPropertyGroup(
    propertyGroup: {
        name: "Ray - PG1"
        externalPropertyGroupId: "RPG-1"
        descriptions:{
            object: "Sample - Object"
            amenities: "Sample - Amenities"
            location: "Sample - Location"
            other: "Sample - Other"
        }
    }
  ) { id }
}

Last updated