Add an image to a product
Add an image to a product.
Authorizations:Token, JWT
Query Parameters
product_id required | integer |
Request Body Schema:
position | integer |
alt | stringAlt text |
externalUrl | stringURL to the image file which will be downloaded from there |
attachment | stringbase64-encoded image |
filename | stringImage name with correct extension. Required for 'attachement' field. |
Responses
201Product Image resource created
Response schema:
Product Image resource created id | integer |
position | integer |
alt | string |
url | string |
width | integer |
height | integer |
400Invalid input
401Unauthorized
Response schema:
Unauthorized type | string |
title | string |
detail | string or null |
instance | string or null |
422Unprocessable entity
500Internal error
Response schema:
Internal error type | string |
title | string |
detail | string or null |
instance | string or null |