Bloss Docs

Create a campaign

Developers
POST
/brands/{brandId}/campaigns

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.

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.

Scope: campaigns:write

Path Parameters

brandId*string

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

Length1 <= length

Request Body

application/json
  1. body
name*string

Up to 80 characters.

Length1 <= length <= 80
notes?|null
copyFromCampaignId?string

Start from this campaign's rules and settings instead of the brand's, along with the pay its groups and creators have only in that campaign.

Length1 <= length
rules?

The rules to change, in the field names brand.campaigns.get returns. Omitted fields keep their value.

then?

Schedule the new draft in the same call. Starting needs a dry run, so create the draft first and start it with brand.campaigns.action.

Response Body

Success.

application/json
  1. response
campaign*
trial*

The trial rule the campaign starts with: a copy takes its source campaign's, otherwise the brand's default trial. no_trial: starting the campaign passes creators waiting for one.

notScheduled*|

Set when then was refused, or would have started the campaign at once. The draft was saved.

curl -X POST 'https://example.com/api/v1/brands/string/campaigns' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
{  "campaign": {    "id": "string",    "name": "string",    "state": "draft",    "current": true,    "postsCount": true,    "startDate": "string",    "endDate": "string",    "startAt": "string",    "endAt": "string",    "openEnded": true,    "pausedSince": "string",    "pauseReason": "admin",    "closedAt": "string",    "deletedAt": "string",    "restorableUntil": "string",    "payEveryoneSame": true,    "notes": "string",    "actions": [      "edit"    ],    "money": {      "earned": 0,      "owed": 0    },    "setsStillEarning": -9007199254740991,    "earningUntil": "string",    "createdAt": "string"  },  "trial": {    "mode": "custom",    "ruleText": "string"  },  "notScheduled": {    "reason": "string",    "message": "string"  }}

Was this page helpful?