Improve a running campaign's terms
scope campaigns:spendwriteslive key only
Changes the terms of a RUNNING campaign (active or paused) in the one direction that cannot hurt a creator who already took the brief: a higher rate per 1,000 views, more platforms, more topics, more paid countries, a shorter review promise.
Everything the agent is told about this tool
Changes the terms of a RUNNING campaign (active or paused) in the one direction that cannot hurt a creator who already took the brief: a higher rate per 1,000 views, more platforms, more topics, more paid countries, a shorter review promise. Send only what changes; the lists are the whole new list and must contain what the campaign has. Anything else is refused by name (terms_rate_lowered, terms_platform_removed, …) and nothing changes. A widened term is a promise to creators and cannot be taken back, and a higher rate or wider countries make the same views cost more of the reserve, so this holds the spending scope and needs a person who may publish and fund. It does not touch the title or the brief and reserves nothing itself. Name the campaign by slug or externalRef. A draft is changed with campaign_draft_save.
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
campaign |
string |
yes | The campaign’s slug, or the externalRef you gave it. |
ratePerThousandMinor |
integer |
no | A new rate per 1,000 views in minor units (cents); it can only be higher than the current one. |
platforms |
"tiktok" | "youtube_shorts" | "instagram_reels" | "vk_clips" | "x"[] |
no | The whole list of platforms, which must include every platform the campaign already has. |
topics |
"gaming" | "memes" | "film_tv" | "reviews" | "true_crime" | "psychology" | "music" | "sports" | "beauty" | "food" | "tech" | "cars" | "fitness" | "travel" | "education" | "finance"[] |
no | The whole list of topics, which must include every topic the campaign already has. |
payableCountries |
string[] |
no | The whole list of countries whose views are paid for: it can only grow; an empty list means any country and is the widest. |
reviewSlaHours |
integer |
no | How many hours you promise to take over a clip; it can only get shorter. One of 24, 48, 72, 120, 168. |
idempotencyKey |
string |
no | Any unique string for this attempt, for example a UUID. Sending the same key and body again returns the first answer instead of writing twice. |
dryRun |
boolean |
no | When true, runs every check and returns what would happen, and keeps nothing: no draft, no log entry, no event. |
A write: send an idempotencyKey (any unique string for this one intent). A call with dryRun: true needs none.
Example
Section titled “Example”curl https://countviews.com/api/public/v1/call \ -H "Authorization: Bearer $COUNTVIEWS_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"campaign_terms_update","arguments":{"campaign":"spring-launch","ratePerThousandMinor":150,"idempotencyKey":"terms-spring-launch-1"}}'{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "campaign_terms_update", "arguments": { "campaign": "spring-launch", "ratePerThousandMinor": 150, "idempotencyKey": "terms-spring-launch-1" } }}{ "campaign": "spring-launch", "ratePerThousandMinor": 150, "idempotencyKey": "terms-spring-launch-1"}