Bloss Docs

Delete a deleted campaign for good

Developers
DELETE
/brands/{brandId}/campaigns/{campaignId}

Remove a campaign that is already deleted (state "deleted", see brand.campaigns.action delete) for good now, instead of after its 30 days. This cannot be undone: the campaign, its rules versions, pauses and history go, and it can no longer be restored. confirmName must be the campaign's name (any case), or "delete" for a campaign with no name. Refused with 409 for a campaign that isn't deleted (details.reason not_allowed) or that has any money paid on it (has_payments). Preview with ?dryRun=true: it runs every check and writes nothing. Full admins only.

Authorization

bearerAuth campaigns:write
headerAuthorizationBearer <token>

Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write, campaigns:write, brand:write, creators:write, engagement:write, support:write, accounts:write, payments:write, creator:write, creator:payouts:write, managed:write, coach:write, agency:write.

Scope: campaigns:write

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length
campaignId*string

A campaign id from GET /brands/{brandId}/campaigns. A payout cycle id is the same id.

Length1 <= length

Query Parameters

dryRun?string

"true": run every check and return { dryRun: true, wouldChange } without changing anything.

Value in"true""false"

Request Body

application/json
  1. body
confirmName*string

The campaign's name, any case; "delete" for a campaign with no name.

Response Body

Success.

application/json
  1. response
ok*boolean
campaignId*string
curl -X DELETE 'https://example.com/api/v1/brands/string/campaigns/string' \  -H 'Content-Type: application/json' \  -d '{  "confirmName": "string"}'
{  "ok": true,  "campaignId": "string"}

Was this page helpful?