Delete

[POST] .../v1/campaign/delete

Deletes campaign. Logically delete a marketing campaign and remove its linked campaign image from storage. The method marks the campaign as deleted, clears the image reference, optionally notifies the campaign handler, sends the CampaignDeleted webhook and returns row_affected. The request body is required and must contain a positive campaign id; the caller must have marketing campaign delete permission. Errors such as missing body, denied access, missing campaign, no affected row, storage errors, storage deletion issues or handler communication errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Record ID.

Request Example

{
  "id": 1
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1,
    "ids": null
  }
}