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
401 | The key or token is missing, wrong or revoked, is for the other environment, or doesn't have the scope this endpoint needs. |
422 | A field is wrong. |