UpdateProductDTO
The data to update in a product. The id
is used to identify which product to update.
id
stringRequiredThe ID of the product to update.
title
stringThe title of the product.
subtitle
stringThe subttle of the product.
description
stringThe description of the product.
is_giftcard
booleanWhether the product is a gift card.
discountable
booleanWhether the product can be discounted.
images
string[] | object[]The product's images. If an array of strings is supplied, each string will be a URL and a
ProductImage
will be created
and associated with the product. If an array of objects is supplied, you can pass along the ID of an existing ProductImage
.thumbnail
stringThe URL of the product's thumbnail.
handle
stringThe handle of the product. The handle can be used to create slug URL paths.
If not supplied, the value of the
handle
attribute of the product is set to the slug version of the title
attribute.status
ProductStatusThe status of the product.
status
ProductStatusThe product type to create and associate with the product.
type_id
null | stringThe product type to be associated with the product.
collection_id
null | stringThe product collection to be associated with the product.
tags
CreateProductTagDTO[]The product tags to be created and associated with the product.
tags
CreateProductTagDTO[]categories
object[]The product categories to associate with the product.
categories
object[]options
CreateProductOptionDTO[]The product options to be created and associated with the product.
options
CreateProductOptionDTO[]variants
(CreateProductVariantDTO | UpdateProductVariantDTO)[]The product variants to be created and associated with the product. You can also update existing product variants associated with the product.
width
numberThe width of the product.
height
numberThe height of the product.
length
numberThe length of the product.
weight
numberThe weight of the product.
origin_country
stringThe origin country of the product.
hs_code
stringThe HS Code of the product.
material
stringThe material of the product.
mid_code
stringThe MID Code of the product.
metadata
Record<string, unknown>Holds custom data in key-value pairs.
Was this section helpful?