Sweet Spot API

Command Palette

Search for a command to run...

PUT/v1/product-variants/{id}

Updates product variant details including name, price, SKU, description, images, options, and status flags. Use this endpoint to modify variant information such as pricing or availability. All fields are optional - only provided fields will be updated. Requires ProductVariantWrite permission on the variant's product organization.

Parameters
Request parameters for this endpoint
NameLocationTypeRequiredDescription
idpathstringRequiredProduct variant ID
Request Body
Fields in the request body
NameTypeRequiredDescription
description
string
OptionalDescription of the variant
discountPercentage
number
OptionalDiscount percentage applied to this variant
isActive
boolean
OptionalWhether this variant is currently active
isWaitlisted
boolean
OptionalWhether this variant is currently waitlisted
mainProductImage
string
OptionalURL to the main product image for this variant
name
string
OptionalName of the product variant
options
Optional-
price
number
OptionalPrice of the variant
sku
string
OptionalStock keeping unit (SKU) identifier
Response Data
Fields returned in the response
NameTypeRequiredDescription
createdAt
string (date-time)
RequiredTimestamp when the variant was created
description
string
RequiredDescription of the variant
discountPercentage
number (double)
RequiredDiscount percentage applied to this variant
externalId
string
OptionalExternal ID from integrated systems (Shopify, etc.)
id
ProductVariantPubId
RequiredPublic-facing unique identifier for the product variant
inventoryQuantity
integer (int32)
RequiredCurrent inventory quantity
isActive
boolean
RequiredWhether this variant is currently active
isWaitlisted
boolean
RequiredWhether this variant is currently waitlisted
name
string
RequiredName of the variant
options
RequiredVariant options (size, color, etc.)
price
number (double)
RequiredPrice of this variant
productImages
array<string>
RequiredURLs to product images for this variant
sku
string
RequiredStock keeping unit (SKU) identifier
stripeId
string
RequiredStripe product variant ID for payment processing
updatedAt
string (date-time)
RequiredTimestamp when the variant was last updated