Skip to main content
DELETE
/
api
/
v1
/
campaigns
/
{campaign_id}
/
targets
Delete Targets
curl --request DELETE \
  --url https://api.example.com/api/v1/campaigns/{campaign_id}/targets \
  --header 'Content-Type: application/json' \
  --data '
{
  "target_ids": [
    "<string>"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Path Parameters

campaign_id
string
required

The ID of the campaign to delete targets from.

Body

application/json
target_ids
string[]
required

The IDs of the targets to delete

Example:
["1234-abcd-1234", "5678-efgh-5678"]

Response

Successful Response