Update a lease
Replaces the lease's term dates, its month-to-month setting, its eviction flag and its icons. Every field is sent every time — anything you leave out is cleared, so read the lease first and send the values back.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease to update. A Snowflake id, sent as a decimal string.
Body
application/json
startstring · daterequiredFirst day of the lease term.
endstring · dateLast day of the fixed term. Must be later than start. Leave it out for an open-ended lease.
evictionbooleanrequiredWhether the lease is flagged as being in eviction.
monthToMonthbooleanrequiredWhether the lease continues month to month after the fixed term.
iconsstring[]requiredIcon keys to show against the lease. Send the full list; it replaces what was there.
Response
200 · The updated lease.
idstringId of the lease. A Snowflake id, sent as a decimal string.
portfolioIdstringPortfolio the lease rolls up to. A Snowflake id, sent as a decimal string.
propertyIdstringProperty the lease's unit sits in. A Snowflake id, sent as a decimal string.
unitIdstringUnit the lease is for. A Snowflake id, sent as a decimal string.
startstring · dateFirst day of the lease term.
endstring · dateLast day of the fixed term. Absent on an open-ended month-to-month lease.
endedbooleanWhether the lease has been ended. A lease whose end date has passed is expired, not ended; expiry never ends a lease by itself.
monthToMonthbooleanWhether the lease continues month to month once the fixed term runs out.
evictionbooleanWhether the lease is flagged as being in eviction.
chatIdstringChat thread for the lease. A Snowflake id, sent as a decimal string.
balancenumberWhat the tenants owe right now, counting payments that have not settled yet. A decimal amount, not cents.
postedBalancenumberWhat the tenants owe counting only settled money.
currentRentnumberCurrent recurring rent, as a decimal amount.
securityDepositPaidnumberHow much security deposit has been paid.
securityDepositRequestednumberHow much security deposit was asked for.
securityDepositDuenumbersecurityDepositRequested minus securityDepositPaid.
lastPaymentDatestring · dateDate of the most recent payment. Absent when nothing has been paid.
earliestUnpaidBillDueDatestring · dateDue date of the oldest charge still owing. Absent when nothing is owed.
pastDueDaysintegerDays since earliestUnpaidBillDueDate. Absent unless the balance is positive and that date is in the past.
iconsstring[]Icon keys the portal shows against the lease.
moveOutDatestring · dateAgreed move-out date, when one has been set.
draftbooleanWhether the lease is still a draft and has not been activated.
statusenum<string>The lease's state, worked out from the flags and dates above. draft before activation; future when the start date has not arrived; lease during a fixed term; leaseMonthToMonth during a fixed term that rolls over afterwards; monthToMonth once it has rolled over or when there is no end date; expired when a fixed term ended and does not roll over, in which case the lease is still live and still accrues charges; eviction while the eviction flag is set; ended once the lease has actually been ended.
expiringStatusenum<string>How close the end date is: immediate within two weeks, imminent within a month, soon within two months, otherwise none. Always none for draft, ended, month-to-month, and open-ended leases.
tenantsHydratedLeaseTenant[]Tenants on the lease, each with the full tenant record.
unitobjectThe unit the lease is for.
propertyobjectThe property the lease's unit sits in.
customFieldValuesCustomFieldValue[]Values of the company's custom fields for this lease. Absent when the endpoint does not load them.