Update campaign, ad set or ad
Updates a campaign, ad set or ad node. Attach a creative, a generated copy or an existing post to an ad with creativeId, copyGenerationId or postId; set other fields, such as status (PAUSED or ACTIVE), through properties. At least one of these must be provided.
bearerAuthAuthorizationBearer <token>An organization API key (koast_sk_…) with the API surface enabled, or an OAuth access token issued by Koast (koast_at_…) whose audience covers this API. REST access requires an active Agency plan.
brandId*integerThe brand the request acts on. Every brand-scoped resource lives under its brand.
launchId*stringThe campaign launch (batch) id.
nodeId*stringID of the node to update. To pause or turn on several nodes, pass nodeIds instead.
1 <= lengthapplication/json- body
nodeIds?array<>IDs of several nodes (up to 50) to pause or turn on in one call, with properties: { status: "PAUSED" | "ACTIVE" } and nothing else. The user approves them together on one card. To pause or turn on more than one node with the same status, use this instead of one call per node. Do not mix live nodes with drafts in one call.
1 <= items <= 50creativeId?numberNumeric creative ID to attach to an ad node. Creative ids come from the Attachments block, list-creatives or upload-creative; never derive one from a node id or post id.
copyGenerationId?numberNumeric copy generation ID to attach to an ad node. Use this AFTER calling generate-copy, take the returned id and pass it here on the target ad.
postId?stringExisting provider post ID to attach to an ad node.
properties?Only status ("PAUSED" | "ACTIVE", live nodes only) and copy (an ad's copy) are accepted. Anything else is refused: rename with rename-node, change settings with update-settings. Do NOT put creativeId / copyGenerationId / postId here, use the dedicated fields above.
Update campaign, ad set or ad
application/json- response
[key: string]?unknowncurl -X PATCH "https://example.com/v1/brands/0/launches/string/nodes/string" \ -H "Authorization: Bearer koast_sk_..." \ -H "Content-Type: application/json" \ -d '{}'{ "property1": null, "property2": null}Required scope: write. CLI: koast update-node, see Launches commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
Remove items from campaign tree
Removes 1-200 campaign, ad set or ad nodes from the launch, together with their children. Only the Koast tree changes: anything already published keeps running on the ad platform. Ids not found in the launch are returned in notFound. Cannot be undone.
Duplicate ad set or ad
Duplicates an ad set or ad, including all its settings and children, count times (1-50).