curl --request PATCH \
--url https://api.lemlist.com/api/users/{userId}/linkedin-limits \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"inviteLimit": 35,
"inMailLimit": 8,
"inviteRampUp": 3
}
'import requests
url = "https://api.lemlist.com/api/users/{userId}/linkedin-limits"
payload = {
"inviteLimit": 35,
"inMailLimit": 8,
"inviteRampUp": 3
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({inviteLimit: 35, inMailLimit: 8, inviteRampUp: 3})
};
fetch('https://api.lemlist.com/api/users/{userId}/linkedin-limits', 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/users/{userId}/linkedin-limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inviteLimit\": 35,\n \"inMailLimit\": 8,\n \"inviteRampUp\": 3\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/users/{userId}/linkedin-limits",
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([
'inviteLimit' => 35,
'inMailLimit' => 8,
'inviteRampUp' => 3
]),
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": {
"userId": "usr_Q7mT2vLx9KpR4nWbZ",
"followLimit": 20,
"inviteLimit": 35,
"sendLimit": 30,
"visitLimit": 30,
"inMailLimit": 8,
"networkCheckLimit": 30,
"withdrawInvitationLimit": 30,
"likeLastPostLimit": 30,
"endorseLimit": 20,
"commentLastPostRetrieveLimit": 20,
"commentLastPostSendLimit": 20,
"inviteRampUp": 3,
"warning": "Above the recommended daily maximum: inviteLimit (30); LinkedIn may restrict the account"
}
}{
"error": "Send only LinkedIn limits named like GET /api/users/:userId (e.g. inviteLimit, inMailLimit), as positive integers",
"code": "LINKEDIN_LIMITS_INVALID_INPUT"
}{
"error": "You cannot change the LinkedIn limits during free trial.",
"code": "LINKEDIN_LIMITS_NO_PAID_PLAN"
}{
"error": "You cannot edit sending limits for this team",
"code": "LINKEDIN_LIMITS_PERMISSION_DENIED"
}{
"error": "This user is not a member of your team",
"code": "LINKEDIN_LIMITS_USER_NOT_IN_TEAM"
}{
"error": "Internal error",
"code": "INTERNAL_ERROR"
}Update User LinkedIn Limits
Updates the daily LinkedIn limits (invitations, messages, profile visits, InMails, endorsements and more) and the invite ramp-up of a team member.
curl --request PATCH \
--url https://api.lemlist.com/api/users/{userId}/linkedin-limits \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"inviteLimit": 35,
"inMailLimit": 8,
"inviteRampUp": 3
}
'import requests
url = "https://api.lemlist.com/api/users/{userId}/linkedin-limits"
payload = {
"inviteLimit": 35,
"inMailLimit": 8,
"inviteRampUp": 3
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({inviteLimit: 35, inMailLimit: 8, inviteRampUp: 3})
};
fetch('https://api.lemlist.com/api/users/{userId}/linkedin-limits', 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/users/{userId}/linkedin-limits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"inviteLimit\": 35,\n \"inMailLimit\": 8,\n \"inviteRampUp\": 3\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/users/{userId}/linkedin-limits",
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([
'inviteLimit' => 35,
'inMailLimit' => 8,
'inviteRampUp' => 3
]),
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": {
"userId": "usr_Q7mT2vLx9KpR4nWbZ",
"followLimit": 20,
"inviteLimit": 35,
"sendLimit": 30,
"visitLimit": 30,
"inMailLimit": 8,
"networkCheckLimit": 30,
"withdrawInvitationLimit": 30,
"likeLastPostLimit": 30,
"endorseLimit": 20,
"commentLastPostRetrieveLimit": 20,
"commentLastPostSendLimit": 20,
"inviteRampUp": 3,
"warning": "Above the recommended daily maximum: inviteLimit (30); LinkedIn may restrict the account"
}
}{
"error": "Send only LinkedIn limits named like GET /api/users/:userId (e.g. inviteLimit, inMailLimit), as positive integers",
"code": "LINKEDIN_LIMITS_INVALID_INPUT"
}{
"error": "You cannot change the LinkedIn limits during free trial.",
"code": "LINKEDIN_LIMITS_NO_PAID_PLAN"
}{
"error": "You cannot edit sending limits for this team",
"code": "LINKEDIN_LIMITS_PERMISSION_DENIED"
}{
"error": "This user is not a member of your team",
"code": "LINKEDIN_LIMITS_USER_NOT_IN_TEAM"
}{
"error": "Internal error",
"code": "INTERNAL_ERROR"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Path Parameters
ID of the team member whose LinkedIn limits to update (usr_xxx)
Body
The team member's daily LinkedIn limits to change, named like the linkedIn limits of GET /users/{userId}. Provide only the fields you want to change; omitted ones keep their current value. At least one is required, and unknown fields are refused: an invalid body fails the whole update and nothing is written. Same limits as Settings > Sending limits: a value above the recommended maximum is stored and the response carries a warning.
Max LinkedIn follows per day
x >= 1Max LinkedIn invitations per day
x >= 1Max LinkedIn direct messages per day
x >= 1Max LinkedIn profile visits per day
x >= 1Max LinkedIn InMails per day: a daily throttle, the monthly InMail credits of the LinkedIn plan stay the hard cap
x >= 1Max LinkedIn network checks per day
x >= 1Max LinkedIn invitation withdrawals per day
x >= 1Max LinkedIn last-post likes per day
x >= 1Max LinkedIn endorsements per day
x >= 1Max LinkedIn last-post retrievals per day
x >= 1Max LinkedIn last-post comments per day
x >= 1Invite ramp-up: how much the daily invitation limit grows each day until it reaches inviteLimit. null turns the ramp-up off; omit it to keep it as is
x >= 1Response
Every daily LinkedIn limit and the invite ramp-up of the team member after the update
Show child attributes
Show child attributes
Was this page helpful?