v1
latestOpenAPI 3.0.12026-07-22120163333.7 KBLeads
Update Property Info
Attach a property (or mailing address) to the specified lead. The behaviour depends on the property.id field in the request body:
- id omitted or <= 0 — the service first tries to merge with an existing property on the lead that has the same street/city/state/zip; if no match is found, a new property record is created.
- id > 0 — the named property is updated in place. The property must belong to this lead (its leadUserId must match the lead's); otherwise the request is rejected with 200108 LEAD_PROPERTY_NOT_EXIST.
Validation:
- At least one of city, state, zipCode, streetAddress must be non-blank; otherwise 200057 PROPERTY_ADDRESS_EMPTY is returned.
- Caller must have manage permission on the lead.
post/v1.0/leads/{leadId}/property
Path parameters
leadIdinteger required
Headers
Authorizationstring required
Bearer [access_token]
Content-Typestring required
application/json
Request body
Example request
{
"price": 100000,
"state": "California",
"city": "New York",
"streetAddress": "22348 Regnart RD",
"zipCode": "25401",
"propertyType": "Single Family Home",
"bedrooms": 3,
"bathrooms": 2,
"squareFeet": 100,
"lotSize": 26.33,
"parkingSpace": 1,
"floors": 1,
"priceMax": 10000000,
"priceMin": 100000
}Response
Property created or updated.
Example response
{
"leadId": 651095960136641
}