Tenant Mutation
Create or Update in EverReal
Mutation Types
type Mutation {
upsertTenant(tenant: TenantInput): Tenant
deleteTenant(externalId: String): AsyncEventResponse
removeTenant(id: String): Boolean
}Schema Definition
input TenantInput {
id:String #EverReal UUID typically can be passes in case of updating externalId
externalTenantId: String! #externalTenantId by which the tenent is identified
unitId: String! #unitId by which the tenent will be attached to. You have to either pass unitId or exteranalunitId
externalUnitId: String! #exteranalunitId by which the tenent will be attached to. You have to either pass unitId or exteranalunitId
firstName: String!
lastName: String!
email: String
companyName: String
phoneNumber: String
cellPhoneNumber: String
additionalTenants: [AdditionalTenant]
coldRent: String # number format should be numeric "123456.34"
serviceCharges: String # number format should be numeric "123456.34"
heatingCosts: String # number format should be numeric "123456.34"
totalRent: String # number format should be numeric "123456.34"
securityDeposit: String # number format should be numeric "123456.34"
contractStartDate: String #date format should be "YYYY-MM-DD" or "DD.MM.YYYY"
contractEndDate: String #date format should be "YYYY-MM-DD" or "DD.MM.YYYY"
terminationDate: String #date format should be "YYYY-MM-DD" or "DD.MM.YYYY"
meta: MetaInformation!
customFieldValues: [CustomFieldValueInput]
}
input AdditionalTenant {
externalId: String
firstName: String
lastName: String
email: String
phoneNumber: String
}
input MetaInformation {
source: String!
}
input CustomFieldValueInput {
key: String!
value: JSON
}
type AsyncEventResponse {
statusCode: Int
message: String
}
Last updated