post https://{accountName}.{environment}.com.br/api/catalog/pvt/stockkeepingunit//file
Creates a new Image on an SKU based on its URL or on a form-data request body
You can add up to 50 files for each SKU. If you have any questions, please feel free to contact our Support.
If you want, you can create the SKU File via file upload by a form-data request instead of using a JSON request body object. Using either option, you must upload an image file within the size limit of 3200 x 3200 pixels. If you opt to use a form-data request, you cannot add IsMain, Label, or Text to it. To add these fields to your SKU file, you need to use the Update SKU File endpoint.
Request body has the following properties:
Attribute | Type | Description |
---|---|---|
IsMain | boolean | Tells if the Image is the Main Image of the SKU |
Label | string | Image Label |
Name | string | Image Name |
Text | string | General text of the Image |
Url | string | Image URL |
Request body example:
{
"IsMain": true,
"Label": "",
"Name": "Royal-Canin-Feline-Urinary-SO",
"Text": null,
"Url": "https://1.bp.blogspot.com/_SLQk9aAv9-o/S7NNbJPv7NI/AAAAAAAAAN8/V1LcO0ViDc4/s1600/waterbottle.jpg"
}
Response body has the following properties:
Attribute | Type | Description |
---|---|---|
Id | integer | Unique identifier of the association of the Image to the SKU |
ArchiveId | integer | Unique identifier of the Image |
SkuId | integer | Unique identifier of an SKU |
Name | string | Image Name |
IsMain | boolean | Tells if the Image is the Main Image of the SKU |
Label | string | Image Label |
Response body example:
{
"Id": 503,
"ArchiveId": 155491,
"SkuId": 1,
"Name": "Royal-Canin-Feline-Urinary-SO",
"IsMain": true,
"Label": ""
}