Campaign-Leads
Mass assign leads
Assign many leads to a campaign in a single request.
When to use. Bulk-add leads to a campaign, selecting them by a filter instead of one at a time. To take leads off a campaign, use PUT /campaign-leads/mass-unassign.
Parameters.
- campaign_id (integer, required): the campaign to assign the matched leads to.
- where (object, required): conditions that select the leads to assign. Any lead field may be used, and each value may be a single value (exact match) or an array (matches any of the listed values). Common fields are id, first_name, last_name, phone, email, city, state, zip, original_identifier.
- remove_from_others (boolean): when true, the matched leads are also removed from every other campaign.
Returns. { "leads": { "<campaign-lead id>": { ...lead }, "errors": [ ... ] } }. Successfully assigned leads are keyed by the new campaign-lead ID, and any leads that could not be assigned are collected under errors.
Example.
{ "campaign_id": 12, "remove_from_others": true, "where": { "id": [1, 2, 3] } }
put/{sub_domain}/api/campaign-leads/mass-assign
Request
- Base URLhttps://api.commpeak.com/dialer
- URLhttps://api.commpeak.com/dialer/{sub_domain}/api/campaign-leads/mass-assign
- 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.