Pause creator campaign
Moves an active campaign to paused: no new submissions, and approvals answer 409 until the
campaign is activated again.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Campaign ID.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.creatorcampaigns.pauseCreatorCampaign({ path: { campaignId: 'campaign_abc123', },});console.log(data);{ "campaign": { "id": "string", "userId": "string", "profileId": "string", "kind": "string", "name": "string", "brandName": "string", "status": "draft", "type": "cpm", "currency": "string", "platforms": [ "tiktok" ], "contentRules": "string", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "trackingDays": 0, "holdDays": 0, "maxPostAgeMinutes": 0, "settlement": "none", "economics": { "type": "cpm", "ratePer1kCents": 1, "minViewsToEarn": 0, "maxPayoutPerClipCents": 1, "budgetCents": 0 }, "caps": { "maxParticipants": 1, "maxSubmissionsPerParticipantPerDay": 1, "maxAccountsPerParticipant": 1, "authenticityThreshold": 0 }, "branding": { "brandName": "string", "primaryColor": "string", "logoUrl": "string", "theme": {} }, "budgetExhaustedAt": "2019-08-24T14:15:22Z", "closedAt": "2019-08-24T14:15:22Z", "payableScannedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "hasOpenInvite": true, "consumedCents": 0, "participantCount": 0, "submissionCounts": { "received": 0, "tracking": 0, "pending_review": 0, "approved": 0, "rejected": 0, "expired": 0, "withdrawn": 0 } }}Close creator campaign
Closes an `active` or `paused` campaign for good and fires `creator_campaign.closed`. Open tracking windows are cancelled. A pool campaign is split among participants at this moment by their approved eligible views, so closing a pool campaign answers 409 while any post still awaits review. A campaign also closes by itself once `endsAt` passed and every tracking window had its final read.
Raise creator campaign budget
Raises the budget of a campaign that is `draft`, `active` or `paused`. Only the budget changes; the pay terms stay as creators joined them, which `PATCH` refuses to change once the campaign is live. The new `budgetCents` must be above the current budget, otherwise 400 `invalid_field_value`. When it is also above what the campaign has spent, `budgetExhaustedAt` is cleared and earnings that stopped at the old budget resume. A closed campaign answers 409 `invalid_resource_state`.