Change a campaign's budget, targets, caps and creator view
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.
bearerAuth campaigns:writeAuthorizationBearer <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
brandId*stringA brand id from GET /me or GET /creator/brands.
1 <= lengthcampaignId*stringA campaign id from GET /brands/{brandId}/campaigns. A payout cycle id is the same id.
1 <= lengthdryRun?string"true": run every check and return { dryRun: true, wouldChange } without changing anything.
"true""false"application/json- 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.
Success.
application/json- response
changed*booleanFalse when it was already as asked.
extras*enforcement*|What the enforcement pass did (marked, cleared, overCap, overBudget, paused, ended…). Null when none ran.
figuresStale*booleanSaved, 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}Create a campaign POST
Save a new campaign as a draft. A draft reserves no dates and nothing counts toward it. It starts from simple starting rules, or from another campaign's rules with `copyFromCampaignId`; `rules` changes any of them. Its trial rule is the copied campaign's, or else the brand's default trial; `trial` says which. A copy also carries the pay the source campaign's groups and creators have only in that campaign (regular and trial), so they're paid the same in the new one until changed; a campaign not copied starts with none. With `then` it is also scheduled for a future day in the same call; if that is refused, the draft is kept and `notScheduled` says why. To start it, preview `start_now` with brand.campaigns.action and dryRun. Full admins only. Answers 201.
One campaign with its rules and history GET
One campaign: its state, days, money, the rules a set made now is priced by, every saved rules version, its pauses and its history (who did what, newest first, up to 200 entries). Pay (`money`, `rules`, each version's `rules`, and the before and after of a rules change in the history) is shown only with the money permission and a full admin; otherwise it is null and `payShown` is false. Use the newest version's id as `basedOnVersionId` when you change the rules.