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": false,
  "stopOnMeetingBooked": true,
  "stopOnLinkClicked": false
}
'
{ "name": "NEW TO DELETE", "stopOnEmailReplied": true, "stopOnMeetingBooked": true, "stopOnLinkClicked": true, "disableTrackReply": true }
This endpoint uses the Campaign object.

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

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.

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

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.