Products
Update a product
Scope: write_products
Changes only the fields you send. null is refused, except for
sale_end_date, where it removes the end date.
imagesandcategory_idsreplace the product’s whole list.optionsreplaces every option. Sendingoptionsneedsvariantsin the same request.variantsis matched byid: a variant with anidis updated and keeps its ID, one without anidis created, and a variant you leave out is deleted. See Options and variants.quantitysets the stock. To add or take away an amount, use Adjust stock.- A product larger than 50 KB is refused (
422 product_too_large), unless it was larger before and your change does not make it larger. - A change to the name, description or meta description goes through the content review.
- A digital product has no options or variants; one sold as codes
also keeps its stock fields (
422, ruledigital).
The answer has every relation: options, variants and
category_ids.
PATCH
cURL
Authorizations
An access token from the OAuth flow (eo_at_...). It lasts one hour;
refresh it with the refresh token. See Authentication.
Body
application/json
Every field is optional; only the fields sent change.
HTML, cleaned before it is saved; see HTML descriptions. No limit of its own beyond the 50 KB of the product.