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" } } }
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
where
object
required

Selects the campaign leads to update by their IDs.

update
object
required

Key/value pairs to update. Split into "lead" and "campaignLead" entities; at least one must be present.

Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json