Skip to main content
PATCH
/
campaigns
/
{campaignId}
Update Campaign
curl --request PATCH \
  --url https://api.lemlist.com/api/campaigns/{campaignId} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "New campaign name",
  "stopOnEmailReplied": true,
  "stopOnMeetingBooked": true,
  "stopOnLinkClicked": false,
  "leadsPausedByInterest": false,
  "opportunityReplied": true,
  "opportunityClicked": false,
  "autoLeadInterest": true,
  "disableTrackOpen": false,
  "disableTrackClick": false,
  "disableTrackReply": false,
  "disableOutOfOffice": false,
  "sequenceSharing": false,
  "sendUserIds": [
    "usr_2aBCdEfGHiJkLmNOp",
    "usr_7xYzAbCdEfGhIjKlM"
  ],
  "autoReview": true,
  "autoReviewConditions": [
    "deliverable",
    "risky"
  ]
}
'
{ "name": "New campaign name", "stopOnEmailReplied": true, "stopOnMeetingBooked": true, "stopOnLinkClicked": false, "leadsPausedByInterest": false, "opportunityReplied": true, "opportunityClicked": false, "autoLeadInterest": true, "disableTrackOpen": false, "disableTrackClick": false, "disableTrackReply": false, "disableOutOfOffice": false, "sequenceSharing": false, "sendUsers": [ { "id": "usr_2aBCdEfGHiJkLmNOp", "mailboxes": [ { "sendUserMailboxId": "smb_1aBcDeFgHiJkLmNoP", "email": "john@acme.com" } ], "phoneNumbers": [ "+15551234567" ], "whatsappAccountIds": [ "wha_3xYzAbCdEfGhIjKlM" ] }, { "id": "usr_7xYzAbCdEfGhIjKlM", "mailboxes": [ { "sendUserMailboxId": "smb_9zYxWvUtSrQpOnMlK", "email": "jane@acme.com" } ], "phoneNumbers": [], "whatsappAccountIds": [] } ] }
Set autoReview to true to automatically launch leads as soon as they are added to the campaign, skipping manual review. Use autoReviewConditions to restrict auto-launch to leads whose email verification matches one of the given deliverability statuses (deliverable, risky, undeliverable, unverified). To configure reply handling and tracking, the preferred way is to send the structured sections (aiFeatures, tracking, onReplied, onLinkClicked, onMeetingBooked); each is applied as a partial update, so only the flags you include are changed. The legacy flat fields (e.g. autoLeadInterest, stopOnEmailReplied) remain supported for back-compat.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

campaignId
string
required

The unique identifier of the campaign

Body

application/json
name
string

The campaign name

stopOnEmailReplied
boolean

Stop the campaign when a lead replies by email

stopOnMeetingBooked
boolean

Stop the campaign when a meeting is booked

Stop the campaign when a link is clicked

leadsPausedByInterest
boolean

Pause leads based on interest

opportunityReplied
boolean

Create an opportunity when a lead replies

opportunityClicked
boolean

Create an opportunity when a lead clicks a link

autoLeadInterest
boolean

Automatically detect lead interest

disableTrackOpen
boolean

Disable tracking of email opens

disableTrackClick
boolean

Disable tracking of link clicks

disableTrackReply
boolean

Disable tracking of email replies

disableOutOfOffice
boolean

Disable out-of-office detection

sequenceSharing
boolean

Enable sequence sharing for the campaign

Filter for which link clicks should stop the campaign

sendUserIds
string[]

Array of user IDs (usr_xxx format) to assign as campaign senders. Cannot be used on campaigns with a dynamic sender strategy (contactOwner, leadImporter, customField). Each sender is validated against the campaign's sending channels (email, LinkedIn, SMS, WhatsApp): senders without capabilities for at least one channel are excluded, and all channels must be covered by at least one sender.

autoReview
boolean

Automatically launch (review) leads as soon as they are added to the campaign, instead of requiring manual review.

autoReviewConditions
enum<string>[]

Email deliverability statuses for which a lead is auto-launched when autoReview is enabled. Only leads whose email verification matches one of these statuses are launched automatically. Invalid values are rejected with a 400 error.

Available options:
deliverable,
risky,
undeliverable,
unverified
aiFeatures
object

AI reply-handling settings. Provide only the flags to change; omitted flags keep their current value.

tracking
object

Open / click / reply tracking toggles.

onReplied
object

Behavior when a lead replies.

Behavior when a lead clicks a tracked link.

onMeetingBooked
object

Behavior when a meeting is booked.

Response

Success

name
string

The campaign name

stopOnEmailReplied
boolean

Stop the campaign when a lead replies by email

stopOnMeetingBooked
boolean

Stop the campaign when a meeting is booked

Stop the campaign when a link is clicked

leadsPausedByInterest
boolean

Pause leads based on interest

opportunityReplied
boolean

Create an opportunity when a lead replies

opportunityClicked
boolean

Create an opportunity when a lead clicks a link

autoLeadInterest
boolean

Automatically detect lead interest

disableTrackOpen
boolean

Disable tracking of email opens

disableTrackClick
boolean

Disable tracking of link clicks

disableTrackReply
boolean

Disable tracking of email replies

disableOutOfOffice
boolean

Disable out-of-office detection

sequenceSharing
boolean

Enable sequence sharing for the campaign

Filter for which link clicks should stop the campaign

sendUsers
object[]

Configured senders for the campaign. Only present when sendUserIds was provided in the request. Senders that lack capabilities for any campaign sending channel are excluded.