Delete a campaign (tenant:crm:write)
DELETE /api/crm/v1/campaigns/{id}
Module: CRM · operationId: deleteCampaign · Tag: Campaigns · Auth: access token (Authorization: Bearer <accessToken>)
Deletes the campaign permanently; its leads and activities stay and lose their campaignId. Emits crm.campaign.deleted.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | Record ID (UUID). |
Responses
- 204 Deleted
- 401 Missing, invalid or expired token (no body).
- 403 The token lacks the permission (
insufficient permissions) or has no active tenant. (application/json) - 404 The record does not exist in the token's tenant. (
application/json) - 500 Unexpected error; details are only logged. (
application/json)
Example request
curl -X DELETE 'https://api.mbcom.cloud/api/crm/v1/campaigns/3f2b8c1e-6d4a-4f7b-9a2e-1c5d7e9f0a12' \
-H "Authorization: Bearer $ACCESS_TOKEN"