Bloss Docs

Set a creator's own trial rule

Developers
PATCH
/brands/{brandId}/creators/{creatorId}/trial-rule

Set the trial rule for one creator, above their group's and the brand's: "default" (follow their group or the brand), "no_trial", or "custom" with a rule (goals such as N videos at X views each, total views or videos posted; an optional minimum and deadline in live days, and what happens at the deadline). Open trials it reaches follow the new rule at once: any whose videos already meet it, or whose rule becomes "no_trial", pass straight away, which can pay a referral bonus, so a save that would pass anyone needs payouts:write (403 with details.creatorIds otherwise). Brands still on payout cycles answer 409 not_converted. With ?dryRun=true nothing is written: the answer has current, next, changed and openTrials (who it reaches and what happens to each, up to 100 listed).

Authorization

bearerAuth creators: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: creators:write

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length
creatorId*string

A creator id from GET /brands/{brandId}/creators.

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

"default": inherit the next level's rule; "no_trial": no trial; "custom": the rule sent.

Value in"default""no_trial""custom"
rule?

Required with mode "custom".

Response Body

Success.

application/json
  1. response
current*

The rule before.

next*

The rule now.

changed*boolean

False when it already had this rule.

passed*array<string>

Creators the save passed.

openTrials*
curl -X PATCH 'https://example.com/api/v1/brands/string/creators/string/trial-rule' \  -H 'Content-Type: application/json' \  -d '{  "mode": "default"}'
{  "current": {    "mode": "default",    "rule": null  },  "next": {    "mode": "default",    "rule": null  },  "changed": true,  "passed": [    "string"  ],  "openTrials": {    "creatorsReached": 0,    "passes": 0,    "fails": 0,    "referralPayouts": 0,    "changes": [      {        "creatorId": "string",        "name": "string",        "outcome": "string",        "before": "string",        "after": "string"      }    ],    "truncated": true  }}

Was this page helpful?