Lead
Update an existing lead
Updates an existing lead. Only the fields provided in the request body are changed.
put/api/business/{businessId}/branch/{branchId}/leads/{leadId}
Path parameters
businessIdstring required
branchIdstring required
leadIdinteger required
Request body
Example request
{
"mobile": "1234567890",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"contactableByEmail": true,
"contactableByMobile": true,
"clientId": "client789"
}Response
Lead updated successfully
Example response
{
"leadId": 12345,
"businessId": "business123",
"branchId": "branch456",
"mobile": "1234567890",
"email": "john.doe@example.com",
"firstName": "John",
"lastName": "Doe",
"contactableByEmail": true,
"contactableByMobile": true,
"source": "THIRD_PARTY_API",
"lastActivityDate": "2024-01-15T10:30:00Z",
"clientId": "client789",
"updatedBy": "user123",
"adCampaignName": "Summer Sale Campaign",
"messageHistory": [
{
"type": "EMAIL",
"sendDate": "2024-01-15T10:30:00Z",
"channel": "email"
}
],
"note": "Interested in hair styling services"
}