Skip to main content

Add an image to a product

Add an image to a product.

Authorizations:Token
Query Parameters
product_id
required
integer
Request Body Schema:
positioninteger
altstringAlt text
externalUrlstringURL to the image file which will be downloaded from there
attachmentstringbase64-encoded image
filenamestringImage name with correct extension. Required for 'attachement' field.

Responses

201Product Image resource created
Response schema:
Product Image resource created
idinteger
positioninteger
altstring
urlstring
widthinteger
heightinteger
400Invalid input
422Unprocessable entity