curl --request PATCH \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"daily_limit": 500,
"target_limit": 500,
"delay_in_seconds": 1800,
"smart_limits_enabled": true,
"reset_hold": true
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}"
payload = {
"daily_limit": 500,
"target_limit": 500,
"delay_in_seconds": 1800,
"smart_limits_enabled": True,
"reset_hold": True
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
daily_limit: 500,
target_limit: 500,
delay_in_seconds: 1800,
smart_limits_enabled: true,
reset_hold: true
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}', 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.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}",
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([
'daily_limit' => 500,
'target_limit' => 500,
'delay_in_seconds' => 1800,
'smart_limits_enabled' => true,
'reset_hold' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}"
payload := strings.NewReader("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "update",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"linkedin_account_sid": "<string>",
"limit_type": "send_connection_requests",
"daily_limit": 123,
"smart_limit": 123,
"target_limit": 123,
"delay_in_seconds": 123,
"batch_size": 123,
"done_today_count": 123,
"last_reset_at": "<string>",
"smart_limits_enabled": true,
"status": "active",
"hold_till": "<string>",
"linkedin_quota_hit_till": "<string>",
"last_counted_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"done_7d_count": 123
},
"updated_fields": [
"<string>"
],
"previous_values": {},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"debug_url": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"debug_url": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"debug_url": "<string>"
}
}Update LinkedIn account smart limit
Patch the operator-tunable policy of one limit row (daily_limit / target_limit / delay_in_seconds / smart_limits_enabled; at least one field OR reset_hold:true required). status is recomputed atomically. A spent daily budget shows as status “held” (there is no “saturated” status). Raising daily_limit does NOT by itself clear that hold. Pass reset_hold:true IN THE SAME CALL to raise the cap AND resume now (the atomic “raise + resume”). The hold only actually clears if the new daily_limit is above done_today_count; otherwise the saturation-latch immediately re-holds it. On a smart-managed row the persistent lever is target_limit (a manual daily_limit below smart_limit is only transient until the next snapshot). System-managed fields (done_today_count, smart_limit, hold_till, linkedin_quota_hit_till, status, …) are rejected as fields. Use reset_hold to clear the hold. A LinkedIn-side lock (linkedin_quota_hit_till) is never resettable.
Contract:
- MCP tool
update_linkedin_account_smart_limit, registry packagemcp.linkedin/linkedin_account_smart_limits, mountlinkedin.accounts. - Operation
update, response envelopeupdate. - Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.
curl --request PATCH \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"daily_limit": 500,
"target_limit": 500,
"delay_in_seconds": 1800,
"smart_limits_enabled": true,
"reset_hold": true
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}"
payload = {
"daily_limit": 500,
"target_limit": 500,
"delay_in_seconds": 1800,
"smart_limits_enabled": True,
"reset_hold": True
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
daily_limit: 500,
target_limit: 500,
delay_in_seconds: 1800,
smart_limits_enabled: true,
reset_hold: true
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}', 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.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}",
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([
'daily_limit' => 500,
'target_limit' => 500,
'delay_in_seconds' => 1800,
'smart_limits_enabled' => true,
'reset_hold' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}"
payload := strings.NewReader("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "update",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"linkedin_account_sid": "<string>",
"limit_type": "send_connection_requests",
"daily_limit": 123,
"smart_limit": 123,
"target_limit": 123,
"delay_in_seconds": 123,
"batch_size": 123,
"done_today_count": 123,
"last_reset_at": "<string>",
"smart_limits_enabled": true,
"status": "active",
"hold_till": "<string>",
"linkedin_quota_hit_till": "<string>",
"last_counted_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"done_7d_count": 123
},
"updated_fields": [
"<string>"
],
"previous_values": {},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"debug_url": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"debug_url": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"debug_url": "<string>"
}
}Authorizations
Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.
Team scope for tokens that do not carry one. Ignored when the token already names a team.
Path Parameters
Smart-limit row sid (ln_sm_…).
18^ln_sm_Body
Request body of update_linkedin_account_smart_limit.
Active cap (1..1000).
1 <= x <= 1000Warm-up ceiling; null clears it.
0 <= x <= 1000Batch-boundary cooldown (1..3600).
1 <= x <= 3600Clear the daily-saturation hold in the same call (the atomic "raise the limit AND resume now"). Only resumes if the new daily_limit > done_today_count; otherwise the row re-holds. Never touches a LinkedIn-side lock.
Response
update success envelope.