Skip to main content
PUT
Update Product

Update Product

Updates an existing product. Only include the fields you want to update. Requires the write_products scope. The body can be flat or wrapped in { "product": { ... } }.

Request

Path Parameters

string
required
The product ID: the numeric id or the UUID product_id.

Body Parameters

All body parameters are optional. Any field not listed below is ignored.
string
The product title.
string
Product description (supports HTML).
string
URL-safe handle.
string
Product status: active, draft, or archived.
array
Array of tags (replaces existing tags).
array
[{ "src": "https://..." }] — the first image replaces the main image.
array
Changes to existing variants. Each entry updates one variant:
  • with id (the variant’s numeric id or its UUID key) — that variant. An id that is not a variant of this product is rejected with 422.
  • without id, in the first position — the product’s first variant (position 1).
Entries without an id after the first are ignored: this endpoint does not add or remove variants (create the product with all its variants instead). Option values (title, option1–option3) of an existing variant are not changed here.The first variant’s price and stock are also copied to the product itself, as on create.
Changes are visible on the storefront immediately.

Response

Returns the updated product as a bare product object — the same shape as Get Product. Money values are decimal strings, id is the numeric product id and product_id the UUID. vendor and product_type are not stored and are returned as empty strings.

Example Response

Error Response

Errors are returned as a standard errors object:

Error Codes