Skip to content
API referenceAPI v1admin-sdk 1.1.52Search docs⌘K
Products · Update a product
API reference / Products

Update a product

PUT/api/v1/products/:idproducts:write

Change a product's details, price or stock.

Path parameters

idintegerrequired

The product's ID.

Body

titlestring

New name.

pricenumber

New price.

units_remaininginteger

New stock.

publicboolean

Show or hide it.

statusinteger

1 draft, 2 published, 3 archived.

Headers

Authorizationheaderrequired

Bearer with your secret key, or the merchant's OAuth token.

Returns

The updated product, with 201.

Errors

401The key or token is missing, wrong or revoked, is for the other environment, or doesn't have the scope this endpoint needs.
422A field is wrong.