Update lead rules
Update the lead rules for a campaign. Lead rules determine which leads are automatically included or excluded.
Synced lists continuously feed leads into the campaign. When a lead is added to a synced list, it is added to the campaign. When a lead is removed from all synced lists that contributed it, it is also removed from the campaign.
Excluded lists prevent leads from being targeted. Leads in an excluded list are removed from the campaign even if they exist in a synced list.
Omitted fields are left unchanged. Pass an empty array to clear synced or excluded lists.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the campaign.
^[0-9a-z]+$Body
List IDs to sync leads from. Leads in these lists are automatically added to the campaign and removed when they leave all synced lists.
^[0-9a-z]+$["l44e15irdq4db30i77cgphhx"]User-created list IDs to exclude. Leads in these lists are removed from the campaign even if they appear in a synced list. Do not pass system list IDs here — use excludeContacted and excludeMutuals instead.
^[0-9a-z]+$["kx9r3m7v2n1p5q8w4y6z0taj"]When true, leads you've already sent a direct message to are excluded from the campaign. Under the hood, this excludes the Contacted system list, which Inbox automatically maintains across all linked accounts.
true
When true, leads with a mutual conversation (at least one message sent and received) are excluded from the campaign. Under the hood, this excludes the Mutual system list, which Inbox automatically maintains across all linked accounts.
false
Custom column mappings keyed by source list ID. Each entry maps a source column ID to a campaign column ID. Only needed for custom columns — profile data is synced automatically. Columns must be created beforehand via the columns API. Unmapped source columns are ignored.
{
"l44e15irdq4db30i77cgphhx": {
"custom_q5cktl47a6pqa74eu06fz89v": "custom_m8r2xj93hd5bk0atcw7oe4fp"
}
}Controls what happens to leads when their source list is detached. 'unlink' (default) keeps the leads in the campaign but removes the link to the source list. 'remove' removes leads that were only in the campaign because of the detached list.
unlink, remove "unlink"
Response
OK