Bloss Docs

Save a campaign template

Developers
POST
/brands/{brandId}/campaign-templates

Save a template a new campaign can start from: from a campaign's current rules, extras and trial rule (fromCampaignId, "Save as template"), or from a setup you send, laid over the brand's pay settings. Send one or the other. A template never holds a name or dates. Changes no campaign. 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, 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

Request Body

application/json
  1. body
name*string
Length1 <= length <= 80
fromCampaignId?string

A campaign id from brand.campaigns.list.

Length1 <= length
setup?

Laid over the brand's own pay settings; omitted extras are off.

Response Body

Success.

application/json
  1. response
template*
curl -X POST 'https://example.com/api/v1/brands/string/campaign-templates' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
{  "template": {    "id": "string",    "name": "string",    "starter": true,    "setup": {      "property1": null,      "property2": null    },    "createdAt": "string",    "updatedAt": "string"  }}

Was this page helpful?