v1
latestOpenAPI 3.0.12026-07-22120163333.7 KBLeads
Update Lead
Updates an existing lead. Caller must have manage permission on the lead.
Property block
If the request body carries a property block, it is persisted alongside the lead update with the same semantics as POST /v1.0/leads/{leadId}/property:
- property.id omitted or <= 0 — merge with an existing property by address; if no match, create a new property record. (Prior versions of this endpoint rejected this case with UPDATE_LEAD_PROPERTY_FAILED; that restriction has been lifted.)
- property.id > 0 — update the named property in place. The property must belong to this lead (its leadUserId must match); otherwise the request is rejected with 200108 LEAD_PROPERTY_NOT_EXIST.
Validation:
- When a property block is supplied, at least one of city, state, zipCode, streetAddress must be non-blank; otherwise 200057 PROPERTY_ADDRESS_EMPTY is returned (the lead update is also aborted).
put/v1.0/leads/{leadId}
Path parameters
leadIdinteger required
ID of the lead to update.
Headers
Authorizationstring required
Bearer [access_token]
Content-Typestring required
application/json
Request body
Example request
{
"firstName": "Bob",
"lastName": "Li",
"emails": [
"jane.doe@example.com",
"jdoe-work@company.com"
],
"phones": [
"+14155551234",
"+12125559876"
],
"leadTypes": [
2,
5
],
"assignedUserId": 10000000514,
"streetAddress": "The White House,1600 Pennsylvania Avenue NW",
"city": "Washington DC",
"state": "Washington DC",
"zipCode": "20500",
"referredBy": "Jeremy Kelly",
"stage": "Pending",
"groups": [
"VIP Clients",
"Open House Feb"
],
"segments": [
"First-Time Buyers",
"Downtown Area"
],
"tags": [
"Hot Lead",
"Zillow"
],
"tagsAdd": [
"Referral",
"Pre-Approved"
],
"source": "Open House",
"inquiry": {
"priceMin": 1,
"priceMax": 10000000,
"propertyType": [
"Single Family Home",
"Condo"
],
"bedroomsMin": 1,
"bathroomsMin": "1",
"locations": [
{
"city": "Austin",
"stateCode": "TX"
}
]
},
"property": {
"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
},
"customAttributeList": [
{
"attributeType": "number, text, date, anniversary_date, single_select, multi_select, percentage, currency"
}
],
"birthday": "Jun 5, 2001",
"buyingTimeFrame": "6-12",
"preQual": "Yes",
"houseToSell": "Yes",
"fthb": "Yes",
"withBuyerAgent": "Yes",
"sellingTimeFrame": "1-3",
"mortgage": "Yes",
"buyHouse": "Yes",
"withListingAgent": "Yes",
"leadFamilyMemberList": [
{
"phones": [
"+14155551234"
],
"emails": [
"spouse@example.com"
]
}
],
"language": "en",
"ownershipScope": "TEAM",
"leadTransaction": {
"created": 1518078026000,
"updated": 1518078026000,
"transactionId": 10001,
"transactionName": "123 Main St",
"leadName": "Bob",
"assignedAgent": 100001,
"transactionType": "Purchase",
"homePrice": 1000000,
"transactionStatus": "Pre-contract",
"expectedCloseDate": 1508580010000,
"closeDate": 1508580010000,
"commissionRate": 3,
"gci": 5000,
"teamRevenue": 1000,
"agentRevenue": 4000,
"appointmentDate": 1508580010000,
"agreementSignedDate": 1508580010000,
"offerDate": 1508580010000,
"contractDate": 1508580010000,
"appraisalDate": 1508580010000,
"homeInspectionDate": 1508580010000,
"escrowDate": 1508580010000,
"expiration": 1508580010000
},
"tagsRemove": [
"Hot Lead"
]
}Response
Lead updated.
Example response
{
"leadId": 651095960136641
}