Bloss Docs

Rename a campaign or change its notes

Developers
PATCH
/brands/{brandId}/campaigns/{campaignId}

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.

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

A campaign id from GET /brands/{brandId}/campaigns. A payout cycle id is the same id.

Length1 <= length

Request Body

application/json
  1. body
name?string
Length1 <= length <= 80
notes?|

null clears them.

Response Body

Success.

application/json
  1. response
campaign*
curl -X PATCH 'https://example.com/api/v1/brands/string/campaigns/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "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"  }}

Was this page helpful?