Skip to main content
PUT
Update a COG line

Authorizations

x-api-key
string
header
required

Your Upstack API key. Starts with upstack_.

x-pixel-id
string
header
required

The pixel id the request targets.

Path Parameters

productId
string
required
variantId
string
required
cogId
string
required

Body

application/json

All fields optional — only the supplied fields are updated.

cost
number
effectiveStartDate
string
effectiveEndDate
string | null
description
string

Response

The updated variant.

variant
object
required

A single SKU under a product. manualCostHistory is the chronological list of COG lines.