Delete Campaign
Delete a campaign. Only draft and cancelled campaigns can be deleted.
Endpointโ
DELETE /v1/campaigns/{id}
Authenticationโ
Requires an API key with the campaigns:write scope.
Path Parametersโ
| Parameter | Type | Description |
|---|---|---|
id | integer | The campaign ID |
Example Requestโ
curl -X DELETE "https://app.equipdash.com/api/v1/campaigns/42" \
-H "Authorization: Bearer eqd_live_your_api_key"
Response (204 No Content)โ
Returns an empty response on success.
Errorsโ
| Status | Code | Description |
|---|---|---|
| 401 | authentication_required | No API key provided |
| 401 | invalid_api_key | Invalid API key |
| 403 | insufficient_scope | API key lacks campaigns:write scope |
| 404 | resource_not_found | Campaign not found |
| 422 | invalid_state | Only draft or cancelled campaigns can be deleted |
To remove a scheduled campaign, unschedule it first โ this returns it to draft, after which it can be deleted.