Add product image
Uploads a new image on a product. If an image with the same file name already exists, the image will still be uploaded but with a new unique name.
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. Will default to 1 if not set. |
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.
|