Create a product image
Create a new product image
Rate Limit: 300 Max attempts within 1 minute.
Path Parameters
Parameter | Details |
---|---|
productIdentifier
| string Examples:
|
Request body
requiredParameter | Details |
---|---|
id
| integer |
referenceKey | string Example: my_original_name.jpg |
name | string Example: image.jpg |
mimeType
| string |
position | integer Example: 3 |
source
| object url stringFormat: uri Example: https://example.com/image.png attachment stringFormat: byte Example: U3dhZ2dlciByb2Nrcw== |
assetUrl | string Example: images/my_image.jpg |
attributes | object Example: [ { "name": "view", "type": "simple", "value": "front", "isLocked": true } ] name stringtype stringEnum: simple simpleList localizedString localizedStringList advanced advancedList value shopCountrySpecific array |
Responses
201
Product image was successfully created.
application/json
Success
id
integer
referenceKey
string
Example:
my_original_name.jpg
name
string
Example:
image.jpg
mimeType
string
position
integer
Example:
3
object
assetUrl
string
Example:
images/my_image.jpg
Array of object
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
404
Not Found
application/json
Error
POST
Request samples
Response samples
201Image:
Content type: application/json