Campaigns

Delete a campaign

DELETE /api/v1/campaigns/{uid}

Parameters
uid string required path
The campaign's uid.
Responses
200 The campaign was deleted.
401 The token is missing or wrong (Unauthenticated.), or its user may not act on this object (Unauthorized). Without the Accept: application/json header, a missing or wrong token answers with a redirect to the sign-in page instead.
404 No campaign has this uid.
Delete a campaign
1 2 3
curl -X DELETE 'https://your-domain/api/v1/campaigns/6adaabd2b4753' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
1 2
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->campaign()->delete('6adaabd2b4753');
Response
{
    "status": 1,
    "message": "Deleted"
}