---
title: "Delete agent source restriction"
method: DELETE
path: "/v2/campaigns/{campaignId}/agent-source-restrictions/{id}"
tags: ["Campaigns.Agent Source Restrictions"]
---

# Delete agent source restriction

`DELETE /v2/campaigns/{campaignId}/agent-source-restrictions/{id}`

## Request

- Base URL: `https://api.carecycle.ai`
- URL: `https://api.carecycle.ai/v2/campaigns/{campaignId}/agent-source-restrictions/{id}`
- Auth: API key in header `x-api-key`

Unblock an agent so they can take calls from a source again.

## Path parameters

- `campaignId` string, uuid, required: Campaign ID
- `id` string, uuid, required: Restriction ID

## Response `200`

DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Positive response

- DeleteV2CampaignsCampaignIdAgentSourceRestrictionsIdPositiveResponse
  - `success` boolean, required
  - `message` string

## Other responses

- `400`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 400
- `401`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 401
- `403`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 403
- `404`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 404
- `409`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 409
- `422`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 422
- `429`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 429
- `500`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 500
- `502`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 502
- `503`: DELETE /v2/campaigns/:campaignId/agent-source-restrictions/:id Negative response 503

---

[API](https://skmtc.dev/carecycle/apis/carecycle-public-api.md) - [All operations](https://skmtc.dev/carecycle/apis/carecycle-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/carecycle/apis/carecycle-public-api/revisions/db390c743c36?raw)
