Add/update product image
Creates or updates an image on a product. If an image with the same file already exists it will be replaced.
The image is included in the body of the request as binary data.
Path Parameters |
---|
productId string — REQUIREDThe id of the product to update. |
imageName string — REQUIREDThe file name of the image that is uploaded. |
Query Parameters |
---|
position int32The relative position of the image in the list of images for the product. |
isPrimaryImage booleanSpecifies whether this image is the primary image on the product. Will not remove the image as primary image if set to false. |
productIdType int32Possible values: [ The type of product id supplied. |
Request Body — REQUIRED The binary data for the image to be uploaded. |
---|
string |
Responses | |||||
---|---|---|---|---|---|
200 Details of the uploaded image.
| |||||
400 Bad request.
| |||||
404 Not found.
| |||||
500 Internal server error.
|