MCP

campaign/delete_by_id

Tool: delete

Permanently delete a campaign.

Soft-deletes the campaign and all associated data. Returns 204 on success. Unlike pause_by_id and start_by_id, a nonexistent ID returns a proper 404 (not 422).

Idempotent: deletes are idempotent — a 404 means this campaign is already gone (including because an earlier call already deleted it). Treat it as the desired end state, not a failure.

Arguments

name type req notes
id integer Campaign ID — the object's campaignId

Response

204 — Deleted; no body.

Errors: 400, 401, 404, 406, 422, 429, 500 — shared schema: schemas/errors.

Invoke

Call delete with name: "campaign/delete_by_id".