Bloss Docs

Set a campaign's trial rule

Developers
PATCH
/brands/{brandId}/campaigns/{campaignId}/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.

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
mode*string

Response Body

Success.

application/json
  1. response
changed*boolean

False when the campaign already had this rule.

mode*string
Value in"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"      }    ]  }}

Was this page helpful?