Deletes a Campaign

DELETE/campaigns/{id}

Deletes a Campaign for a given Campaign id.
Privileges:

  • campaign-detector.manage

Auditlog Event: campaign.detector.campaign.delete

Errors:

  • CAMPAIGN_DETECTOR_API_CAMPAIGN_NOT_FOUND - campaign not found
  • CAMPAIGN_DETECTOR_API_CAMPAIGN_STATUS_NOT_SUPPORTED - The given status is not supported
Base URL
https://api-cpaas.sms.es/bulk/campaign-detector/v1
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

idintegerrequired

Campaign ID

Request example

cURL · cURL
curl -L -X DELETE "https://api-cpaas.sms.es/bulk/campaign-detector/v1/campaigns/{id}" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

The campaign has been deleted