curl --request PUT \
--url https://api.leadping.ai/leads/{id} \
--header 'Content-Type: application/json' \
--data '
{
"contact": {
"firstName": "<string>",
"lastName": "<string>",
"streetAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"timeZoneId": "<string>",
"phone": {
"phoneIdentityId": "<string>",
"number": "<string>",
"type": "<string>"
},
"email": "<string>"
},
"customer": {
"height": "<string>",
"weight": "<string>",
"birthDate": "2023-12-25",
"income": "<string>",
"isHomeowner": true,
"monthsAtResidence": "<string>",
"creditScore": "<string>",
"hasBankruptcy": true,
"numberOfDependents": "<string>",
"hasMedicalCondition": true
},
"enabled": true,
"tagIds": [
"<string>"
],
"tagNames": [
"<string>"
],
"id": "<string>"
}
'import requests
url = "https://api.leadping.ai/leads/{id}"
payload = {
"contact": {
"firstName": "<string>",
"lastName": "<string>",
"streetAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"timeZoneId": "<string>",
"phone": {
"phoneIdentityId": "<string>",
"number": "<string>",
"type": "<string>"
},
"email": "<string>"
},
"customer": {
"height": "<string>",
"weight": "<string>",
"birthDate": "2023-12-25",
"income": "<string>",
"isHomeowner": True,
"monthsAtResidence": "<string>",
"creditScore": "<string>",
"hasBankruptcy": True,
"numberOfDependents": "<string>",
"hasMedicalCondition": True
},
"enabled": True,
"tagIds": ["<string>"],
"tagNames": ["<string>"],
"id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/leads/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"contact\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"streetAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"coordinate\": {\n \"latitude\": \"<string>\",\n \"longitude\": \"<string>\"\n },\n \"timeZoneId\": \"<string>\",\n \"phone\": {\n \"phoneIdentityId\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"email\": \"<string>\"\n },\n \"customer\": {\n \"height\": \"<string>\",\n \"weight\": \"<string>\",\n \"birthDate\": \"2023-12-25\",\n \"income\": \"<string>\",\n \"isHomeowner\": true,\n \"monthsAtResidence\": \"<string>\",\n \"creditScore\": \"<string>\",\n \"hasBankruptcy\": true,\n \"numberOfDependents\": \"<string>\",\n \"hasMedicalCondition\": true\n },\n \"enabled\": true,\n \"tagIds\": [\n \"<string>\"\n ],\n \"tagNames\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/leads/{id}")
.header("Content-Type", "application/json")
.body("{\n \"contact\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"streetAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"coordinate\": {\n \"latitude\": \"<string>\",\n \"longitude\": \"<string>\"\n },\n \"timeZoneId\": \"<string>\",\n \"phone\": {\n \"phoneIdentityId\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"email\": \"<string>\"\n },\n \"customer\": {\n \"height\": \"<string>\",\n \"weight\": \"<string>\",\n \"birthDate\": \"2023-12-25\",\n \"income\": \"<string>\",\n \"isHomeowner\": true,\n \"monthsAtResidence\": \"<string>\",\n \"creditScore\": \"<string>\",\n \"hasBankruptcy\": true,\n \"numberOfDependents\": \"<string>\",\n \"hasMedicalCondition\": true\n },\n \"enabled\": true,\n \"tagIds\": [\n \"<string>\"\n ],\n \"tagNames\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n}")
.asString();const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
contact: {
firstName: '<string>',
lastName: '<string>',
streetAddress: {
line1: '<string>',
line2: '<string>',
city: '<string>',
state: '<string>',
province: '<string>',
region: '<string>',
postalCode: '<string>',
country: '<string>',
additionalInfo: '<string>'
},
coordinate: {latitude: '<string>', longitude: '<string>'},
timeZoneId: '<string>',
phone: {phoneIdentityId: '<string>', number: '<string>', type: '<string>'},
email: '<string>'
},
customer: {
height: '<string>',
weight: '<string>',
birthDate: '2023-12-25',
income: '<string>',
isHomeowner: true,
monthsAtResidence: '<string>',
creditScore: '<string>',
hasBankruptcy: true,
numberOfDependents: '<string>',
hasMedicalCondition: true
},
enabled: true,
tagIds: ['<string>'],
tagNames: ['<string>'],
id: '<string>'
})
};
fetch('https://api.leadping.ai/leads/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/leads/{id}"
payload := strings.NewReader("{\n \"contact\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"streetAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"coordinate\": {\n \"latitude\": \"<string>\",\n \"longitude\": \"<string>\"\n },\n \"timeZoneId\": \"<string>\",\n \"phone\": {\n \"phoneIdentityId\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"email\": \"<string>\"\n },\n \"customer\": {\n \"height\": \"<string>\",\n \"weight\": \"<string>\",\n \"birthDate\": \"2023-12-25\",\n \"income\": \"<string>\",\n \"isHomeowner\": true,\n \"monthsAtResidence\": \"<string>\",\n \"creditScore\": \"<string>\",\n \"hasBankruptcy\": true,\n \"numberOfDependents\": \"<string>\",\n \"hasMedicalCondition\": true\n },\n \"enabled\": true,\n \"tagIds\": [\n \"<string>\"\n ],\n \"tagNames\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/leads/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'contact' => [
'firstName' => '<string>',
'lastName' => '<string>',
'streetAddress' => [
'line1' => '<string>',
'line2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'province' => '<string>',
'region' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'additionalInfo' => '<string>'
],
'coordinate' => [
'latitude' => '<string>',
'longitude' => '<string>'
],
'timeZoneId' => '<string>',
'phone' => [
'phoneIdentityId' => '<string>',
'number' => '<string>',
'type' => '<string>'
],
'email' => '<string>'
],
'customer' => [
'height' => '<string>',
'weight' => '<string>',
'birthDate' => '2023-12-25',
'income' => '<string>',
'isHomeowner' => true,
'monthsAtResidence' => '<string>',
'creditScore' => '<string>',
'hasBankruptcy' => true,
'numberOfDependents' => '<string>',
'hasMedicalCondition' => true
],
'enabled' => true,
'tagIds' => [
'<string>'
],
'tagNames' => [
'<string>'
],
'id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"metadata": {
"trustedFormUrl": "<string>",
"utmSource": "<string>",
"utmMedium": "<string>",
"utmCampaign": "<string>",
"utmTerm": "<string>",
"utmContent": "<string>",
"referrer": "<string>",
"landingPage": "<string>",
"subId": "<string>",
"pubId": "<string>",
"ipAddress": "<string>",
"userAgent": "<string>",
"externalId": "<string>",
"sellerLeadId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"price": "<string>",
"directPostPrice": "<string>",
"product": "<string>",
"vertical": "<string>",
"complianceStatus": "<string>",
"complianceBlockedReason": "<string>",
"sourceMetadata": {},
"origin": "<string>",
"importBatchId": "<string>",
"isImported": true,
"assignedPhoneNumberId": "<string>",
"smsConsentStatus": "<string>",
"smsOptedOut": true,
"smsOptOutAt": "2023-11-07T05:31:56Z",
"smsOptInAt": "2023-11-07T05:31:56Z",
"smsHelpRequestedAt": "2023-11-07T05:31:56Z",
"smsConsentPhoneNumber": "<string>",
"userId": "<string>",
"businessId": "<string>"
},
"contact": {
"firstName": "<string>",
"lastName": "<string>",
"streetAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"timeZoneId": "<string>",
"phone": {
"phoneIdentityId": "<string>",
"number": "<string>",
"type": "<string>"
},
"email": "<string>"
},
"phoneIdentity": {
"number": "<string>",
"lookup": {
"number": "<string>",
"isValid": true,
"carrier": {
"mobileCountryCode": "<string>",
"mobileNetworkCode": "<string>",
"name": "<string>",
"normalizedCarrier": "<string>",
"errorCode": "<string>"
},
"location": {
"location": "<string>",
"state": "<string>",
"canonicalCity": "<string>",
"canonicalState": "<string>",
"countryCode": "<string>",
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"coordinateSource": {
"method": "<string>",
"query": "<string>"
},
"timeZoneId": "<string>",
"timeZoneSource": {
"method": "<string>",
"query": "<string>"
}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
},
"lastEnrichedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
},
"customer": {
"height": "<string>",
"weight": "<string>",
"birthDate": "2023-12-25",
"income": "<string>",
"isHomeowner": true,
"monthsAtResidence": "<string>",
"creditScore": "<string>",
"hasBankruptcy": true,
"numberOfDependents": "<string>",
"hasMedicalCondition": true
},
"enabled": true,
"archivedAt": "2023-11-07T05:31:56Z",
"archivedByUserId": "<string>",
"archiveNote": "<string>",
"isArchived": true,
"currentDisposition": {
"id": "<string>",
"outcome": "<string>",
"displayName": "<string>",
"changedAt": "2023-11-07T05:31:56Z",
"changedByUserId": "<string>",
"changedByAutomationId": "<string>"
},
"tags": [
{
"id": "<string>",
"name": "<string>",
"normalizedName": "<string>",
"color": "<string>"
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Update a business lead record and status
Updates lead details for the current business, keeping contact data, status, source, and follow-up context current.
curl --request PUT \
--url https://api.leadping.ai/leads/{id} \
--header 'Content-Type: application/json' \
--data '
{
"contact": {
"firstName": "<string>",
"lastName": "<string>",
"streetAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"timeZoneId": "<string>",
"phone": {
"phoneIdentityId": "<string>",
"number": "<string>",
"type": "<string>"
},
"email": "<string>"
},
"customer": {
"height": "<string>",
"weight": "<string>",
"birthDate": "2023-12-25",
"income": "<string>",
"isHomeowner": true,
"monthsAtResidence": "<string>",
"creditScore": "<string>",
"hasBankruptcy": true,
"numberOfDependents": "<string>",
"hasMedicalCondition": true
},
"enabled": true,
"tagIds": [
"<string>"
],
"tagNames": [
"<string>"
],
"id": "<string>"
}
'import requests
url = "https://api.leadping.ai/leads/{id}"
payload = {
"contact": {
"firstName": "<string>",
"lastName": "<string>",
"streetAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"timeZoneId": "<string>",
"phone": {
"phoneIdentityId": "<string>",
"number": "<string>",
"type": "<string>"
},
"email": "<string>"
},
"customer": {
"height": "<string>",
"weight": "<string>",
"birthDate": "2023-12-25",
"income": "<string>",
"isHomeowner": True,
"monthsAtResidence": "<string>",
"creditScore": "<string>",
"hasBankruptcy": True,
"numberOfDependents": "<string>",
"hasMedicalCondition": True
},
"enabled": True,
"tagIds": ["<string>"],
"tagNames": ["<string>"],
"id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/leads/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"contact\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"streetAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"coordinate\": {\n \"latitude\": \"<string>\",\n \"longitude\": \"<string>\"\n },\n \"timeZoneId\": \"<string>\",\n \"phone\": {\n \"phoneIdentityId\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"email\": \"<string>\"\n },\n \"customer\": {\n \"height\": \"<string>\",\n \"weight\": \"<string>\",\n \"birthDate\": \"2023-12-25\",\n \"income\": \"<string>\",\n \"isHomeowner\": true,\n \"monthsAtResidence\": \"<string>\",\n \"creditScore\": \"<string>\",\n \"hasBankruptcy\": true,\n \"numberOfDependents\": \"<string>\",\n \"hasMedicalCondition\": true\n },\n \"enabled\": true,\n \"tagIds\": [\n \"<string>\"\n ],\n \"tagNames\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/leads/{id}")
.header("Content-Type", "application/json")
.body("{\n \"contact\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"streetAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"coordinate\": {\n \"latitude\": \"<string>\",\n \"longitude\": \"<string>\"\n },\n \"timeZoneId\": \"<string>\",\n \"phone\": {\n \"phoneIdentityId\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"email\": \"<string>\"\n },\n \"customer\": {\n \"height\": \"<string>\",\n \"weight\": \"<string>\",\n \"birthDate\": \"2023-12-25\",\n \"income\": \"<string>\",\n \"isHomeowner\": true,\n \"monthsAtResidence\": \"<string>\",\n \"creditScore\": \"<string>\",\n \"hasBankruptcy\": true,\n \"numberOfDependents\": \"<string>\",\n \"hasMedicalCondition\": true\n },\n \"enabled\": true,\n \"tagIds\": [\n \"<string>\"\n ],\n \"tagNames\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n}")
.asString();const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
contact: {
firstName: '<string>',
lastName: '<string>',
streetAddress: {
line1: '<string>',
line2: '<string>',
city: '<string>',
state: '<string>',
province: '<string>',
region: '<string>',
postalCode: '<string>',
country: '<string>',
additionalInfo: '<string>'
},
coordinate: {latitude: '<string>', longitude: '<string>'},
timeZoneId: '<string>',
phone: {phoneIdentityId: '<string>', number: '<string>', type: '<string>'},
email: '<string>'
},
customer: {
height: '<string>',
weight: '<string>',
birthDate: '2023-12-25',
income: '<string>',
isHomeowner: true,
monthsAtResidence: '<string>',
creditScore: '<string>',
hasBankruptcy: true,
numberOfDependents: '<string>',
hasMedicalCondition: true
},
enabled: true,
tagIds: ['<string>'],
tagNames: ['<string>'],
id: '<string>'
})
};
fetch('https://api.leadping.ai/leads/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/leads/{id}"
payload := strings.NewReader("{\n \"contact\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"streetAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"coordinate\": {\n \"latitude\": \"<string>\",\n \"longitude\": \"<string>\"\n },\n \"timeZoneId\": \"<string>\",\n \"phone\": {\n \"phoneIdentityId\": \"<string>\",\n \"number\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"email\": \"<string>\"\n },\n \"customer\": {\n \"height\": \"<string>\",\n \"weight\": \"<string>\",\n \"birthDate\": \"2023-12-25\",\n \"income\": \"<string>\",\n \"isHomeowner\": true,\n \"monthsAtResidence\": \"<string>\",\n \"creditScore\": \"<string>\",\n \"hasBankruptcy\": true,\n \"numberOfDependents\": \"<string>\",\n \"hasMedicalCondition\": true\n },\n \"enabled\": true,\n \"tagIds\": [\n \"<string>\"\n ],\n \"tagNames\": [\n \"<string>\"\n ],\n \"id\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/leads/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'contact' => [
'firstName' => '<string>',
'lastName' => '<string>',
'streetAddress' => [
'line1' => '<string>',
'line2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'province' => '<string>',
'region' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'additionalInfo' => '<string>'
],
'coordinate' => [
'latitude' => '<string>',
'longitude' => '<string>'
],
'timeZoneId' => '<string>',
'phone' => [
'phoneIdentityId' => '<string>',
'number' => '<string>',
'type' => '<string>'
],
'email' => '<string>'
],
'customer' => [
'height' => '<string>',
'weight' => '<string>',
'birthDate' => '2023-12-25',
'income' => '<string>',
'isHomeowner' => true,
'monthsAtResidence' => '<string>',
'creditScore' => '<string>',
'hasBankruptcy' => true,
'numberOfDependents' => '<string>',
'hasMedicalCondition' => true
],
'enabled' => true,
'tagIds' => [
'<string>'
],
'tagNames' => [
'<string>'
],
'id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"metadata": {
"trustedFormUrl": "<string>",
"utmSource": "<string>",
"utmMedium": "<string>",
"utmCampaign": "<string>",
"utmTerm": "<string>",
"utmContent": "<string>",
"referrer": "<string>",
"landingPage": "<string>",
"subId": "<string>",
"pubId": "<string>",
"ipAddress": "<string>",
"userAgent": "<string>",
"externalId": "<string>",
"sellerLeadId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"price": "<string>",
"directPostPrice": "<string>",
"product": "<string>",
"vertical": "<string>",
"complianceStatus": "<string>",
"complianceBlockedReason": "<string>",
"sourceMetadata": {},
"origin": "<string>",
"importBatchId": "<string>",
"isImported": true,
"assignedPhoneNumberId": "<string>",
"smsConsentStatus": "<string>",
"smsOptedOut": true,
"smsOptOutAt": "2023-11-07T05:31:56Z",
"smsOptInAt": "2023-11-07T05:31:56Z",
"smsHelpRequestedAt": "2023-11-07T05:31:56Z",
"smsConsentPhoneNumber": "<string>",
"userId": "<string>",
"businessId": "<string>"
},
"contact": {
"firstName": "<string>",
"lastName": "<string>",
"streetAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"timeZoneId": "<string>",
"phone": {
"phoneIdentityId": "<string>",
"number": "<string>",
"type": "<string>"
},
"email": "<string>"
},
"phoneIdentity": {
"number": "<string>",
"lookup": {
"number": "<string>",
"isValid": true,
"carrier": {
"mobileCountryCode": "<string>",
"mobileNetworkCode": "<string>",
"name": "<string>",
"normalizedCarrier": "<string>",
"errorCode": "<string>"
},
"location": {
"location": "<string>",
"state": "<string>",
"canonicalCity": "<string>",
"canonicalState": "<string>",
"countryCode": "<string>",
"coordinate": {
"latitude": "<string>",
"longitude": "<string>"
},
"coordinateSource": {
"method": "<string>",
"query": "<string>"
},
"timeZoneId": "<string>",
"timeZoneSource": {
"method": "<string>",
"query": "<string>"
}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
},
"lastEnrichedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
},
"customer": {
"height": "<string>",
"weight": "<string>",
"birthDate": "2023-12-25",
"income": "<string>",
"isHomeowner": true,
"monthsAtResidence": "<string>",
"creditScore": "<string>",
"hasBankruptcy": true,
"numberOfDependents": "<string>",
"hasMedicalCondition": true
},
"enabled": true,
"archivedAt": "2023-11-07T05:31:56Z",
"archivedByUserId": "<string>",
"archiveNote": "<string>",
"isArchived": true,
"currentDisposition": {
"id": "<string>",
"outcome": "<string>",
"displayName": "<string>",
"changedAt": "2023-11-07T05:31:56Z",
"changedByUserId": "<string>",
"changedByAutomationId": "<string>"
},
"tags": [
{
"id": "<string>",
"name": "<string>",
"normalizedName": "<string>",
"color": "<string>"
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Path Parameters
The ID of the lead to update.
Body
The updated lead data.
Request schema for the Leadping API lead request, including the fields clients can send.
Structured metadata used for attribution, integrations, and reporting on this lead request.
Show child attributes
Show child attributes
Contact details for the lead or customer represented by this lead request.
Show child attributes
Show child attributes
Demographic profile details for the lead represented by this lead request.
Show child attributes
Show child attributes
Indicates whether this lead request is active and available in the Leadping API.
Tag IDs assigned to or filtered against this lead.
Tag names assigned to this lead when matching existing tags by name.
The unique identifier for the entity, when updating an existing entity.
Response
Lead was successfully updated.
Response schema for the Leadping API lead response returned to authenticated clients.
Structured metadata used for attribution, integrations, and reporting on this lead response.
Show child attributes
Show child attributes
Contact details for the lead or customer represented by this lead response.
Show child attributes
Show child attributes
Canonical phone identity and provider lookup details for this lead.
Show child attributes
Show child attributes
Demographic profile details for the lead represented by this lead response.
Show child attributes
Show child attributes
Indicates whether this lead response is active and available in the Leadping API.
UTC timestamp when this record was archived.
User ID of the person who archived this record.
Defines why a lead was removed from the active working pipeline.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Optional note explaining why the lead was archived.
Indicates whether the lead has been archived in Leadping.
Current disposition summary that describes the lead outcome.
Show child attributes
Show child attributes
Tags currently attached to this lead, source, or record.
Show child attributes
Show child attributes
The unique identifier for the entity.
The date and time when the entity was created.
The date and time when the entity was last modified, if applicable.

