Delete a Maihue Lead
curl --request DELETE \
--url https://api.bbrands.io/api/v1/maihue/lead/{documentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bbrands.io/api/v1/maihue/lead/{documentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bbrands.io/api/v1/maihue/lead/{documentId}', 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://api.bbrands.io/api/v1/maihue/lead/{documentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bbrands.io/api/v1/maihue/lead/{documentId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.bbrands.io/api/v1/maihue/lead/{documentId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bbrands.io/api/v1/maihue/lead/{documentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 200,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Unauthorized: Authentication is required to access this resource"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 401,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Forbidden: You do not have the necessary permissions to access this resource"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 403,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Not Found: The specified resource could not be found"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 404,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Too Many Requests: You have exceeded the allowed number of requests. Please try again later"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 429,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 500,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Service Unavailable: The server is temporarily unable to handle the request"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 503,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Gateway Timeout: The server did not receive a timely response from an upstream server or application"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 504,
"timestamp": "2025-01-01T00:00:00Z"
}
}Lead
Delete Lead
Delete a Maihue Lead
DELETE
/
maihue
/
lead
/
{documentId}
Delete a Maihue Lead
curl --request DELETE \
--url https://api.bbrands.io/api/v1/maihue/lead/{documentId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bbrands.io/api/v1/maihue/lead/{documentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bbrands.io/api/v1/maihue/lead/{documentId}', 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://api.bbrands.io/api/v1/maihue/lead/{documentId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bbrands.io/api/v1/maihue/lead/{documentId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.bbrands.io/api/v1/maihue/lead/{documentId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bbrands.io/api/v1/maihue/lead/{documentId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 200,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Unauthorized: Authentication is required to access this resource"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 401,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Forbidden: You do not have the necessary permissions to access this resource"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 403,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Not Found: The specified resource could not be found"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 404,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Too Many Requests: You have exceeded the allowed number of requests. Please try again later"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 429,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 500,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Service Unavailable: The server is temporarily unable to handle the request"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 503,
"timestamp": "2025-01-01T00:00:00Z"
}
}{
"error": {
"code": "BBXYYYZZZ",
"errors": [],
"message": "Gateway Timeout: The server did not receive a timely response from an upstream server or application"
},
"metadata": {
"correlation": "29146752-ef3a-4569-b397-ff2144412c4a",
"status": 504,
"timestamp": "2025-01-01T00:00:00Z"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The document ID of the lead
Was this page helpful?
⌘I