API referenceLaunches

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.

PATCH
/v1/brands/{brandId}/launches/{launchId}/nodes/{nodeId}
bearerAuth
headerAuthorizationBearer <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*integer

The brand the request acts on. Every brand-scoped resource lives under its brand.

launchId*string

The campaign launch (batch) id.

nodeId*string

ID of the node to update. To pause or turn on several nodes, pass nodeIds instead.

Length1 <= length
application/json
  1. 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.

Items1 <= items <= 50
creativeId?number

Numeric 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?number

Numeric 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?string

Existing 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.

Response Body

Update campaign, ad set or ad

application/json
  1. response
[key: string]?unknown
curl -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.