Update lead
curl --request PATCH \
--url https://app.leadbeast.io/api/v1/leads/{lead} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notes": "<string>",
"tags": [
"<string>"
],
"job_title": "<string>",
"company_name": "<string>",
"email": "<string>",
"phone": "<string>"
}
'import requests
url = "https://app.leadbeast.io/api/v1/leads/{lead}"
payload = {
"notes": "<string>",
"tags": ["<string>"],
"job_title": "<string>",
"company_name": "<string>",
"email": "<string>",
"phone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notes: '<string>',
tags: ['<string>'],
job_title: '<string>',
company_name: '<string>',
email: '<string>',
phone: '<string>'
})
};
fetch('https://app.leadbeast.io/api/v1/leads/{lead}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.leadbeast.io/api/v1/leads/{lead}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'notes' => '<string>',
'tags' => [
'<string>'
],
'job_title' => '<string>',
'company_name' => '<string>',
'email' => '<string>',
'phone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.leadbeast.io/api/v1/leads/{lead}"
payload := strings.NewReader("{\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.patch("https://app.leadbeast.io/api/v1/leads/{lead}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadbeast.io/api/v1/leads/{lead}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "completed",
"lead_id": "<string>",
"updated_fields": [
"<string>"
],
"lead": {
"stage": "new",
"notes": "<string>",
"tags": [
"<string>"
],
"job_title": "<string>",
"company_name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"replayed": true
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}leads
Update lead
Update a lead’s stage, notes, tag, job title, company, email or phone. Fields you leave out stay as they are; nothing else about the lead can be changed here.
PATCH
/
leads
/
{lead}
Update lead
curl --request PATCH \
--url https://app.leadbeast.io/api/v1/leads/{lead} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notes": "<string>",
"tags": [
"<string>"
],
"job_title": "<string>",
"company_name": "<string>",
"email": "<string>",
"phone": "<string>"
}
'import requests
url = "https://app.leadbeast.io/api/v1/leads/{lead}"
payload = {
"notes": "<string>",
"tags": ["<string>"],
"job_title": "<string>",
"company_name": "<string>",
"email": "<string>",
"phone": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
notes: '<string>',
tags: ['<string>'],
job_title: '<string>',
company_name: '<string>',
email: '<string>',
phone: '<string>'
})
};
fetch('https://app.leadbeast.io/api/v1/leads/{lead}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.leadbeast.io/api/v1/leads/{lead}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'notes' => '<string>',
'tags' => [
'<string>'
],
'job_title' => '<string>',
'company_name' => '<string>',
'email' => '<string>',
'phone' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.leadbeast.io/api/v1/leads/{lead}"
payload := strings.NewReader("{\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.patch("https://app.leadbeast.io/api/v1/leads/{lead}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadbeast.io/api/v1/leads/{lead}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"notes\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"job_title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "completed",
"lead_id": "<string>",
"updated_fields": [
"<string>"
],
"lead": {
"stage": "new",
"notes": "<string>",
"tags": [
"<string>"
],
"job_title": "<string>",
"company_name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"replayed": true
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}{
"error": {
"status": "completed",
"message": "<string>",
"reason_code": "<string>"
},
"meta": {
"request_id": "<string>",
"replayed": true
}
}Authorizations
Headers
Body
application/json