Core API
...
Core API Docs
Products
Update a Product Variant
PATCH
https://app.sparklayer.io/api/v1/variants/{id}
Live
Path Parameters
id
string
*
Header Parameters
Site-Id
string
*
Body Parameters
body
ProductVariant
*
external_id
string
sku
string
barcode
string
weight_in_grams
number
tax_type
number
position
number
cart_image_url
string
rrp
ProductVariantRRP[]
options
ProductVariantOptions[]
status
string<pending | discontinued | suspended | live>
settings
ProductVariantSettings[]
stock
ProductStock-2[]
Responses
200
Successful response
ProductVariant
product_id
string
id
string
created_at
string<date-time>
updated_at
string<date-time>
external_id
string
sku
string
barcode
string
weight_in_grams
number
tax_type
number
position
number
cart_image_url
string
rrp
ProductVariantRRP[]
options
ProductVariantOptions[]
status
string<pending | discontinued | suspended | live>
settings
ProductVariantSettings[]
stock
ProductStock-2[]
409
Conflict Response
default
Error Response
Updated 01 Aug 2024
Did this page help you?