Set a campaign's trial rule
Set the trial rule new creators follow in this campaign, as the campaign's Trial tab does: { mode: "no_trial" }, or { mode: "custom", rule } with up to three goals (N videos at X views each, X total views, N videos posted), a minimum time and a deadline with what happens at it. Creators already on a trial under this campaign's rule move to the new rule at once: anyone it already passes moves to Active straight away (releasing their held trial sets, and possibly paying a referral bonus), and a deadline that has passed on a fail rule fails them. Refused with 409 on a closed campaign, while a payment for an affected creator is in flight, and for a brand still on payout cycles (details.reason not_converted). Preview with ?dryRun=true first: trialChanges lists who passes, fails or changes rule, nothing written. Full admins only.
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
mode*stringSuccess.
application/json- response
changed*booleanFalse when the campaign already had this rule.
mode*string"no_trial""custom"passed*array<string>Creator ids the save passed.
trialChanges*curl -X PATCH 'https://example.com/api/v1/brands/string/campaigns/string/trial-rule' \ -H 'Content-Type: application/json' \ -d '{ "mode": "no_trial"}'{ "changed": true, "mode": "no_trial", "passed": [ "string" ], "trialChanges": { "creatorsReached": -9007199254740991, "passes": -9007199254740991, "fails": -9007199254740991, "referralPayouts": -9007199254740991, "creators": [ { "creatorId": "string", "name": "string", "outcome": "string", "ruleBefore": "string", "ruleAfter": "string" } ] }}Include a set that is over a cap, over the budget or found late POST
Take the Over cap, Over budget or Found late mark off one set of the campaign, so it is owed at the price its rules give it; it counts on top of the caps and is never marked again. Set ids and their `blocker` (over_cap, over_budget, late_found) come from brand.campaigns.balances.get. Refused with 409 on a closed campaign or a set without such a mark; 404 for a set not in the campaign. Preview with ?dryRun=true: what it would be owed, nothing written. Full admins only (in the app, limited admins can too). Kept in the campaign's history.
Rename a campaign or change its notes PATCH
Change a campaign's name or notes, in any state but deleted. A name is a label, not a figure: nothing is repriced. Kept in the campaign's history. Full admins only. Returns the campaign.