EaserixDocs
DevelopersAPI referenceLinksCampaigns

Archive a campaign (does not delete it)

Archives rather than hard-deleting (EAS-73): a campaign is the reporting dimension for every click already recorded against links that used it, and a hard delete would either orphan those links' campaignId or erase campaign-level history. Existing links and their analytics are completely unaffected — this only stops the campaign from being selectable for new links. Idempotent.

View as Markdown
DELETE
/v1/campaigns/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/campaigns/string"
{  "message": "string",  "campaign": {    "id": "string",    "name": "string",    "utmSource": "string",    "utmMedium": "string",    "utmCampaign": "string",    "utmTerm": "string",    "utmContent": "string",    "archived": true,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}