Update business
curl --request PATCH \
--url https://app.leadbeast.io/api/v1/business \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"website": "<string>",
"short_description": "<string>",
"industry": "<string>",
"description": "<string>",
"value_proposition": "<string>",
"pain_point": "<string>",
"ideal_customer": "<string>",
"writing_guide": "<string>"
}
'import requests
url = "https://app.leadbeast.io/api/v1/business"
payload = {
"name": "<string>",
"website": "<string>",
"short_description": "<string>",
"industry": "<string>",
"description": "<string>",
"value_proposition": "<string>",
"pain_point": "<string>",
"ideal_customer": "<string>",
"writing_guide": "<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({
name: '<string>',
website: '<string>',
short_description: '<string>',
industry: '<string>',
description: '<string>',
value_proposition: '<string>',
pain_point: '<string>',
ideal_customer: '<string>',
writing_guide: '<string>'
})
};
fetch('https://app.leadbeast.io/api/v1/business', 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/business",
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([
'name' => '<string>',
'website' => '<string>',
'short_description' => '<string>',
'industry' => '<string>',
'description' => '<string>',
'value_proposition' => '<string>',
'pain_point' => '<string>',
'ideal_customer' => '<string>',
'writing_guide' => '<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/business"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"website\": \"<string>\",\n \"short_description\": \"<string>\",\n \"industry\": \"<string>\",\n \"description\": \"<string>\",\n \"value_proposition\": \"<string>\",\n \"pain_point\": \"<string>\",\n \"ideal_customer\": \"<string>\",\n \"writing_guide\": \"<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/business")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"website\": \"<string>\",\n \"short_description\": \"<string>\",\n \"industry\": \"<string>\",\n \"description\": \"<string>\",\n \"value_proposition\": \"<string>\",\n \"pain_point\": \"<string>\",\n \"ideal_customer\": \"<string>\",\n \"writing_guide\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadbeast.io/api/v1/business")
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 \"name\": \"<string>\",\n \"website\": \"<string>\",\n \"short_description\": \"<string>\",\n \"industry\": \"<string>\",\n \"description\": \"<string>\",\n \"value_proposition\": \"<string>\",\n \"pain_point\": \"<string>\",\n \"ideal_customer\": \"<string>\",\n \"writing_guide\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "completed",
"updated_fields": [
"<string>"
],
"business": {
"name": "<string>",
"website": "<string>",
"short_description": "<string>",
"industry": "<string>",
"description": "<string>",
"value_proposition": "<string>",
"pain_point": "<string>",
"ideal_customer": "<string>",
"writing_guide": "<string>",
"updated_at": "<string>"
},
"message": "<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
}
}business
Update business
Update the company profile. Fields you leave out stay as they are; pass an empty string to clear one. Name is required the first time and can never be cleared. Read the profile first with get-business.
PATCH
/
business
Update business
curl --request PATCH \
--url https://app.leadbeast.io/api/v1/business \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"website": "<string>",
"short_description": "<string>",
"industry": "<string>",
"description": "<string>",
"value_proposition": "<string>",
"pain_point": "<string>",
"ideal_customer": "<string>",
"writing_guide": "<string>"
}
'import requests
url = "https://app.leadbeast.io/api/v1/business"
payload = {
"name": "<string>",
"website": "<string>",
"short_description": "<string>",
"industry": "<string>",
"description": "<string>",
"value_proposition": "<string>",
"pain_point": "<string>",
"ideal_customer": "<string>",
"writing_guide": "<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({
name: '<string>',
website: '<string>',
short_description: '<string>',
industry: '<string>',
description: '<string>',
value_proposition: '<string>',
pain_point: '<string>',
ideal_customer: '<string>',
writing_guide: '<string>'
})
};
fetch('https://app.leadbeast.io/api/v1/business', 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/business",
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([
'name' => '<string>',
'website' => '<string>',
'short_description' => '<string>',
'industry' => '<string>',
'description' => '<string>',
'value_proposition' => '<string>',
'pain_point' => '<string>',
'ideal_customer' => '<string>',
'writing_guide' => '<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/business"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"website\": \"<string>\",\n \"short_description\": \"<string>\",\n \"industry\": \"<string>\",\n \"description\": \"<string>\",\n \"value_proposition\": \"<string>\",\n \"pain_point\": \"<string>\",\n \"ideal_customer\": \"<string>\",\n \"writing_guide\": \"<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/business")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"website\": \"<string>\",\n \"short_description\": \"<string>\",\n \"industry\": \"<string>\",\n \"description\": \"<string>\",\n \"value_proposition\": \"<string>\",\n \"pain_point\": \"<string>\",\n \"ideal_customer\": \"<string>\",\n \"writing_guide\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadbeast.io/api/v1/business")
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 \"name\": \"<string>\",\n \"website\": \"<string>\",\n \"short_description\": \"<string>\",\n \"industry\": \"<string>\",\n \"description\": \"<string>\",\n \"value_proposition\": \"<string>\",\n \"pain_point\": \"<string>\",\n \"ideal_customer\": \"<string>\",\n \"writing_guide\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "completed",
"updated_fields": [
"<string>"
],
"business": {
"name": "<string>",
"website": "<string>",
"short_description": "<string>",
"industry": "<string>",
"description": "<string>",
"value_proposition": "<string>",
"pain_point": "<string>",
"ideal_customer": "<string>",
"writing_guide": "<string>",
"updated_at": "<string>"
},
"message": "<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