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 as first_name, phone, email, timezone_id, call_after.
- campaignLead: fields on the campaign-lead assignment, such as status_id, assigned_user_id, weight, call_after. For weight, 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" } } }
put/{sub_domain}/api/campaign-leads/update-campaign-leads
Request
- Base URLhttps://api.commpeak.com/dialer
- URLhttps://api.commpeak.com/dialer/{sub_domain}/api/campaign-leads/update-campaign-leads
- AuthAPI key in header Authorization
Path parameters
sub_domainstring required
Dialer Name (subdomain)
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.