Bloss Docs

Recalculate a campaign's figures now

Developers
POST
/brands/{brandId}/campaigns/{campaignId}/recalculate

Run the campaign's part of the nightly sync now, as its Recalculate button does: pair its videos into sets, price every set at the latest views Bloss already has (nothing is fetched from the platforms), run the caps and budget, and roll up what each creator is owed. Moves no money. Refused with 409 on a closed or unstarted campaign, a cycle from before campaigns, and while a rules save is still repricing it. Can take a few minutes on a big campaign. ?dryRun=true runs only those checks. 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"

Response Body

Success.

application/json
  1. response
recalculatedAt*string

ISO-8601 timestamp.

curl -X POST 'https://example.com/api/v1/brands/string/campaigns/string/recalculate'
{  "recalculatedAt": "string"}

Was this page helpful?

Delete a deleted campaign for good DELETE

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.

Change a campaign's pay rules POST

Save new pay rules for a campaign as a new version and reprice its sets: base pay (one rate or per platform), minimum views and how they're counted, the bonus (tiers, or a rate per 1,000 views with a cap), the earning window, which sets count, late-found videos, the Base pay queue, payment requirements and trial pay. Send only what changes. By default the change reaches sets with nothing paid yet; `alsoTopUpPaid` also raises sets already paid. Money already paid is never reduced. **A save needs a dry run first:** call with ?dryRun=true to get the preview (`totals`, `basedOnVersionId`, `inForceFrom`), show it to the user, then call again with the same body plus `basedOnVersionId` and `expected` (the preview's totals). The save is refused with 409 when someone else changed the rules since, when the figures moved, while a payment is in flight, and on a closed campaign. Full admins only. Returns the new version's id, how many sets moved and the totals.