v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
CampaignLeads

Move to campaign

The Move to campaign API endpoint allows you to move leads from one campaign to another. You should specify the following fields in the request body:

Request Body

  • id (array of integers) - The Lead IDs of the leads to be moved.

  • source_campaign_id (integer) - The ID of the source campaign.

  • with_preserve_data (boolean) - Indicates whether to preserve the data while moving the leads.

  • destination_campaign_id (integer) - The ID of the destination campaign.

put/campaign-leads/move-to-campaign

Request body

destination_campaign_idnumber
idnumber[]
source_campaign_idnumber
with_preserve_datanumber

Example request

{
  "destination_campaign_id": 11,
  "id": [
    111
  ],
  "source_campaign_id": 1,
  "with_preserve_data": 1
}

Response

Successful operation / Failed operation

Example response

{
  "campaignLeads": [
    {
      "amd_disabled": "0",
      "assigned_at": null,
      "assigned_user_id": null,
      "assigned_user_permanent": "0",
      "call_after": null,
      "call_after_outside_allowed_time": "0",
      "calls_count": "0",
      "campaign_id": "1",
      "clone_of": null,
      "created_at": "2022-08-14 13:11:07",
      "is_deleted": "0",
      "lead_id": "1",
      "no_ratio": "0",
      "outbound_ivr_disabled": "0",
      "override_trunk_id": "-1",
      "permanent_assignment_expire_at": null,
      "status_id": "5",
      "updated_at": "2022-08-15 07:52:16",
      "updating_status_started_at": null,
      "weight": "1000"
    }
  ],
  "messages": []
}