Update Product
PUT/products/:id
Updates a product. Only the fields you send are changed. A field that this endpoint does not accept, such as id or createdAt, is rejected.
Clearing fields:
Send null for slug or defaultPriceId to remove it. Other fields cannot be cleared.
Default price:
defaultPriceId must be an active price of this product. A price that is archived later stays the default until you change it.
Archiving:
Set active to false to archive the product. Products are never deleted.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 422
- 500
- 503
A product object
The request is incorrect or could not be processed
Unauthorized error. Please check your auth credentials
The specified resource was not found
The request conflicts with the current state of the resource
The request was well-formed but could not be processed due to semantic errors
Unexpected server error
The service is temporarily unavailable