---
title: "Mass assign leads"
method: PUT
path: "/campaign-leads/mass-assign"
tags: ["CampaignLeads"]
---

# Mass assign leads

`PUT /campaign-leads/mass-assign`

The Mass assign leads endpoint enables you to mass assign leads to a specific campaign. In the request body you should provide:

- `remove_from_others` - Remove from other campaigns (true - remove, false - skip).
    
- `campaign_id` - campaign to add leads to
    
- `where` - array of conditions, can have any of the following fields: id, first_name, last_name, phone, phone2, address1, address2, country, state, city, zip, timezone, original_identifier, support_site, purchase_site, purchase_date, purchase_amount, purchase_product_name, purchase_card_name, purchase_card_type, purchase_card_digits, email, birthdate, loan_amount

## Request body

- object
  - `campaign_id` number
  - `remove_from_others` boolean
  - `where` object
    - `id` number[]

## Response `200`

Successful operation

- object
  - `leads` object[]
    - `first_name` string
    - `id` string
    - `last_name` string
    - `original_identifier` string
    - `phone` string
    - `phone_normalized` string, nullable

## Other responses

- `404` — Error

---

[API](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1.md) · [All operations](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/commpeak/dialer-api-v2-0-1/versions/eacecf960bb6/schema)
