Set View Tabs
curl --request PUT \
--url https://api.lemlist.com/api/views/tabs \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"entity": "contact",
"pinned": [
"evw_A1B2C3ExAmPlE9xYz",
"evw_contact_my_contacts"
]
}
'import requests
url = "https://api.lemlist.com/api/views/tabs"
payload = {
"entity": "contact",
"pinned": ["evw_A1B2C3ExAmPlE9xYz", "evw_contact_my_contacts"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entity: 'contact',
pinned: ['evw_A1B2C3ExAmPlE9xYz', 'evw_contact_my_contacts']
})
};
fetch('https://api.lemlist.com/api/views/tabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/views/tabs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity\": \"contact\",\n \"pinned\": [\n \"evw_A1B2C3ExAmPlE9xYz\",\n \"evw_contact_my_contacts\"\n ]\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/views/tabs",
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([
'entity' => 'contact',
'pinned' => [
'evw_A1B2C3ExAmPlE9xYz',
'evw_contact_my_contacts'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"pinned": [
"evw_A1B2C3ExAmPlE9xYz",
"evw_contact_my_contacts"
]
}
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}The authentication you supplied is incorrect{
"error": "Views of this list are not enabled for this team",
"code": "ENTITY_VIEW_ENTITY_UNAVAILABLE"
}{
"error": "View not found",
"code": "ENTITY_VIEW_NOT_FOUND"
}Views
Set View Tabs
Sets which views show as the API key user’s tabs on a list, and in which order.
PUT
/
views
/
tabs
Set View Tabs
curl --request PUT \
--url https://api.lemlist.com/api/views/tabs \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"entity": "contact",
"pinned": [
"evw_A1B2C3ExAmPlE9xYz",
"evw_contact_my_contacts"
]
}
'import requests
url = "https://api.lemlist.com/api/views/tabs"
payload = {
"entity": "contact",
"pinned": ["evw_A1B2C3ExAmPlE9xYz", "evw_contact_my_contacts"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entity: 'contact',
pinned: ['evw_A1B2C3ExAmPlE9xYz', 'evw_contact_my_contacts']
})
};
fetch('https://api.lemlist.com/api/views/tabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/views/tabs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entity\": \"contact\",\n \"pinned\": [\n \"evw_A1B2C3ExAmPlE9xYz\",\n \"evw_contact_my_contacts\"\n ]\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/views/tabs",
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([
'entity' => 'contact',
'pinned' => [
'evw_A1B2C3ExAmPlE9xYz',
'evw_contact_my_contacts'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"pinned": [
"evw_A1B2C3ExAmPlE9xYz",
"evw_contact_my_contacts"
]
}
}{
"error": "Validation error",
"code": "VALIDATION_ERROR"
}The authentication you supplied is incorrect{
"error": "Views of this list are not enabled for this team",
"code": "ENTITY_VIEW_ENTITY_UNAVAILABLE"
}{
"error": "View not found",
"code": "ENTITY_VIEW_NOT_FOUND"
}Authorizations
Body
application/json
Was this page helpful?