Rename a campaign template
Rename one of the brand's templates. Starters can't be changed (409). Full admins only.
bearerAuth campaigns:writeAuthorizationBearer <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
brandId*stringA brand id from GET /me or GET /creator/brands.
1 <= lengthtemplateId*stringA template id from brand.campaign-templates.list.
1 <= lengthapplication/json- body
name*string1 <= length <= 80Success.
application/json- response
template*curl -X PATCH 'https://example.com/api/v1/brands/string/campaign-templates/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "template": { "id": "string", "name": "string", "starter": true, "setup": { "property1": null, "property2": null }, "createdAt": "string", "updatedAt": "string" }}The brand's campaign templates GET
The brand's own campaign templates by name, then the starters every brand has. Each holds a campaign's pay rules and settings (never its name or dates). Full admins only: templates carry pay rules.
Schedule, start, pause, end, close or delete a campaign POST
Run one campaign action, as the buttons on the campaign's page do. Only one campaign can be Live or Paused at a time: starting one while another runs needs `handover: true`, which ends the running one at the same moment. Days are YYYY-MM-DD in the brand's time zone; Start now, End now, Pause and Resume happen at the moment of the call. **Starting, ending and closing need a dry run first:** call with ?dryRun=true, check `from`, `to` and `changes` with the user, then call again with the same body and the `confirmToken` it returned. Without the token those actions answer 400; with a token from before the campaign changed, 409. A refusal answers 400, 404 or 409 with the sentence as the message and a stable code in `details.reason` (for example `needs_handover`, `overlaps_another`, `open_ended_running`, `payment_in_flight`, `sets_still_earning`, `has_payments`, `not_allowed`). Deleting a campaign that has started needs its name as `confirmName`; one that had money paid can't be deleted (close it instead). Full admins only. Returns the campaign, the states before and after, and `figuresStale` when the figures will catch up at the next sync.