Bloss Docs

Change a campaign's budget, targets, caps and creator view

Developers
PATCH
/brands/{brandId}/campaigns/{campaignId}/extras

Change a campaign's extras, as its Extras tab does: the budget (and what happens at its limit), targets (and whether reaching them ends the campaign), per-creator caps, what creators see and are told, the posting pace for platforms its rules leave out, and the reporting deadline. Send only what changes; null turns an extra off. A change to the budget, caps or targets runs the enforcement pass at once: sets can be marked Over cap or Over budget (owed nothing until included with brand.campaigns.sets.include) or have that mark taken off, and Bloss can pause the campaign for its budget or end it for its target. "Pay everyone this campaign's rates" is a pay rule: change it with brand.campaigns.rules.update. Refused with 409 on a closed campaign. Preview with ?dryRun=true: before and after of each field that would change, writing nothing. Full admins only. Kept in the campaign's history.

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

Only the fields sent change, each laid over what the campaign has now; null turns an extra off.

budget?|

The campaign's budget: paid plus owed plus held trial money. null turns it off.

targets?|

null turns targets off.

creatorCaps?|

Per-creator caps. Sets over a cap are marked Over cap and owed nothing until included. null turns them off.

creatorView?|

What creators see of the campaign, and which notices they get. null turns it off.

postingDefaults?|

The posting pace for a platform the campaign's rules leave out.

reportingDeadline?|

YYYY-MM-DD in the brand's time zone. Advisory only: a Late badge.

Response Body

Success.

application/json
  1. response
changed*boolean

False when it was already as asked.

extras*
enforcement*|

What the enforcement pass did (marked, cleared, overCap, overBudget, paused, ended…). Null when none ran.

figuresStale*boolean

Saved, but the enforcement pass failed; it runs again at the next sync.

curl -X PATCH 'https://example.com/api/v1/brands/string/campaigns/string/extras' \  -H 'Content-Type: application/json' \  -d '{}'
{  "changed": true,  "extras": {    "campaignId": "string",    "state": "draft",    "timeZone": "string",    "enforced": true,    "extras": {      "property1": null,      "property2": null    },    "progress": {      "budget": {        "property1": null,        "property2": null      },      "targets": {        "property1": null,        "property2": null      },      "setsOverCap": -9007199254740991,      "setsOverBudget": -9007199254740991    }  },  "enforcement": {    "property1": null,    "property2": null  },  "figuresStale": true}

Was this page helpful?