put
https://{subdomain}.td.commpeak.com/api/campaign-leads/update-campaign-leads
Update fields on many campaign leads in a single request.
When to use. Change lead details or campaign-lead settings (status, weight, assignment and more) across a set of campaign leads selected by their IDs.
Parameters.
where.id(array of integers, required): the campaign-lead IDs to update.update(object, required): the fields to change, split into two groups. At least one group must be present.lead: fields on the lead itself, such asfirst_name,phone,email,timezone_id,call_after.campaignLead: fields on the campaign-lead assignment, such asstatus_id,assigned_user_id,weight,call_after. Forweight, a plain number sets the value (1 to 65536), while a leading+or-increases or decreases the current weight.
Returns. { "data": [ ... ], "messages": [ ... ] }. data holds the updated campaign leads, each with its related lead embedded under lead, and messages carries informational notes, for example a timezone that could not be applied.
Example.
{ "where": { "id": [4, 5] }, "update": { "campaignLead": { "weight": "+10" } } }Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…