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

# Mass unassign leads

`PUT /campaign-leads/mass-unassign`

Thw Mass unassign leads API method is used to unassign multiple leads from a specific campaign. You should add the following fields in the request body:

#### Request Body

- `campaign_id` (integer) - The ID of the campaign from which leads are to be unassigned.
    
- `where` (object) - Criteria to select the leads to be unassigned. In this example, the criteria is based on the lead `id` field.
    

#### Response

The response for this request is a 204 status code with a Content-Type of text/xml.

## Request body

- object
  - `campaign_id` number
  - `where` object
    - `id` string[]

## Response `204`

Successful operation

## 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/revisions/eacecf960bb6/schema)
