curl --request PATCH \
--url https://api.lemlist.com/api/tasks \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "opp_0Ieq2qRMg5EIeUMFV"
}
'import requests
url = "https://api.lemlist.com/api/tasks"
payload = { "id": "opp_0Ieq2qRMg5EIeUMFV" }
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({id: 'opp_0Ieq2qRMg5EIeUMFV'})
};
fetch('https://api.lemlist.com/api/tasks', 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/tasks")
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 \"id\": \"opp_0Ieq2qRMg5EIeUMFV\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/tasks",
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([
'id' => 'opp_0Ieq2qRMg5EIeUMFV'
]),
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;
}{
"_id": "opp_KNQOrrlGnLvEXDDS9",
"type": "manual",
"title": "Check him out",
"priority": 2,
"dueDate": "2025-10-31T07:58:00.000Z",
"userId": "usr_ahfFktBBHUIxbVG5P",
"content": "Really glad we started using lemlist"
}Bad teamThe authentication you supplied is incorrectUpdate Task
Modifies aspects of an existing task including assignment, scheduling, and status.
curl --request PATCH \
--url https://api.lemlist.com/api/tasks \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "opp_0Ieq2qRMg5EIeUMFV"
}
'import requests
url = "https://api.lemlist.com/api/tasks"
payload = { "id": "opp_0Ieq2qRMg5EIeUMFV" }
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({id: 'opp_0Ieq2qRMg5EIeUMFV'})
};
fetch('https://api.lemlist.com/api/tasks', 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/tasks")
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 \"id\": \"opp_0Ieq2qRMg5EIeUMFV\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/tasks",
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([
'id' => 'opp_0Ieq2qRMg5EIeUMFV'
]),
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;
}{
"_id": "opp_KNQOrrlGnLvEXDDS9",
"type": "manual",
"title": "Check him out",
"priority": 2,
"dueDate": "2025-10-31T07:58:00.000Z",
"userId": "usr_ahfFktBBHUIxbVG5P",
"content": "Really glad we started using lemlist"
}Bad teamThe authentication you supplied is incorrectUpdatable Fields
All fields are optional exceptid:
- Assignment: Change the assigned team member with
assignedTo - Schedule: Update the
dueDate - Details: Modify
titleormessagecontent. On a campaign step withmanual: true,messagedoes not change what the campaign sends: use Personalize Step for Lead - Priority: Set priority level (0=low, 1=medium, 2=high, ""=none)
- Status: Mark as complete with
done: true. On a campaign step withmanual: true, the campaign then sends the step: see Manual steps - LinkedIn media (LinkedIn tasks only): Replace attached files via
imagesandvideos. Pass an empty array to clear them. See the LinkedIn task attachments section on Create Task for size, MIME, and count limits
images or videos to a non-LinkedIn task returns 400 with LINKEDIN_MEDIA_INVALID_TYPE.{
"id": "opp_abc123",
"done": true
}
{
"id": "opp_abc123",
"assignedTo": "usr_xyz789",
"dueDate": "2025-03-15T10:00:00.000Z"
}
{
"id": "opp_abc123",
"images": [
"https://example.com/assets/overview.png"
],
"videos": []
}
Authorizations
Body
Mark task as completed. On a campaign step with manual: true, the campaign then sends the step. To close the task without sending, use Ignore Tasks
Public HTTPS URLs of images to attach to a LinkedIn task. Replaces the task's current images — pass an empty array to clear them. Returns 400 (LINKEDIN_MEDIA_INVALID_TYPE) when the target task is not a LinkedIn task. Allowed MIME types: image/png, image/jpeg, image/gif. Up to 20 MB per file, and up to 6 items total combined with videos.
Public HTTPS URLs of videos to attach to a LinkedIn task. Replaces the task's current videos — pass an empty array to clear them. Returns 400 (LINKEDIN_MEDIA_INVALID_TYPE) when the target task is not a LinkedIn task. Allowed MIME types: video/mp4, video/quicktime. Up to 20 MB per file, and up to 6 items total combined with images.
Response
Success
A manual action assigned to a user to complete. Only the fields set on the task are returned.
Task type as stored, never null. Tasks created through the API use email, manual, phone, linkedinSend or whatsappMessage. Campaign tasks carry the type of their step (for example linkedinInvite, whatsappVoiceNote or sms), and reply and click tasks use opportunityReplied and opportunityClicked.
Was this page helpful?