Mark signals handled or ignored
curl --request PUT \
--url https://api.lemlist.com/api/watchlist/signals \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"signalIds": [
"wsi_Example000000001",
"wsi_Example000000002"
],
"status": "ignored"
}
'import requests
url = "https://api.lemlist.com/api/watchlist/signals"
payload = {
"signalIds": ["wsi_Example000000001", "wsi_Example000000002"],
"status": "ignored"
}
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({signalIds: ['wsi_Example000000001', 'wsi_Example000000002'], status: 'ignored'})
};
fetch('https://api.lemlist.com/api/watchlist/signals', 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/watchlist/signals")
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 \"signalIds\": [\n \"wsi_Example000000001\",\n \"wsi_Example000000002\"\n ],\n \"status\": \"ignored\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/watchlist/signals",
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([
'signalIds' => [
'wsi_Example000000001',
'wsi_Example000000002'
],
'status' => 'ignored'
]),
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": {
"updatedCount": 123,
"requestedCount": 123
}
}"signalIds must contain between 1 and 1000 ids""Unauthorized""Internal server error"Signal Agents
Mark signals handled or ignored
Marks one or several signals as handled or ignored.
PUT
/
watchlist
/
signals
Mark signals handled or ignored
curl --request PUT \
--url https://api.lemlist.com/api/watchlist/signals \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"signalIds": [
"wsi_Example000000001",
"wsi_Example000000002"
],
"status": "ignored"
}
'import requests
url = "https://api.lemlist.com/api/watchlist/signals"
payload = {
"signalIds": ["wsi_Example000000001", "wsi_Example000000002"],
"status": "ignored"
}
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({signalIds: ['wsi_Example000000001', 'wsi_Example000000002'], status: 'ignored'})
};
fetch('https://api.lemlist.com/api/watchlist/signals', 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/watchlist/signals")
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 \"signalIds\": [\n \"wsi_Example000000001\",\n \"wsi_Example000000002\"\n ],\n \"status\": \"ignored\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/watchlist/signals",
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([
'signalIds' => [
'wsi_Example000000001',
'wsi_Example000000002'
],
'status' => 'ignored'
]),
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": {
"updatedCount": 123,
"requestedCount": 123
}
}"signalIds must contain between 1 and 1000 ids""Unauthorized""Internal server error"Set the status of up to 1000 signals in one call.
status is either handled or ignored; pass an optional reason to note why (only meaningful for ignored). The write is scoped to your team, so updatedCount can be lower than requestedCount when some ids no longer exist or belong to another team.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Signal ids (wsi_xxx) to update, from List signals. Between 1 and 1000 per call.
Required array length:
1 - 1000 elementsTarget status to set on every signal.
Available options:
handled, ignored Optional note explaining the decision. Only meaningful when status is "ignored".
Response
Success
Show child attributes
Show child attributes
Was this page helpful?