Update product
PATCH
/ admin/ v1/ stores/ {store_id}/ products/ {product_id}- products:write
Partially update a product. Send If-Match: "v{version}" to avoid overwriting someone else's changes.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.product_idstringrequiredThe product's ID, like
prod_01k8qs5s….
Headers
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
titlestring · or nullhandlestring · or nulldescription_htmlstring · or nullstatusenum · or nullWhether a product can be sold.
- draft
- active
- archived
product_typestring · or nullvendorstring · or nullcategory_idinteger · or nullGoogle's product category ID;
nullclears it.customs_descriptionstring · or nullWhat customs read on international labels;
nullclears it.
Returns
200 Updated product.
Errors
- 404
not_foundNo such product. - 409Handle or SKU already used.
- 412
precondition_failedThe product changed since it was read. - 422
validation_failedValidation failed.