Create SKU 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:

AttributeTypeDescription
IsMainbooleanTells if the Image is the Main Image of the SKU
LabelstringImage Label
NamestringImage Name
TextstringGeneral text of the Image
UrlstringImage 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:

AttributeTypeDescription
IdintegerUnique identifier of the association of the Image to the SKU
ArchiveIdintegerUnique identifier of the Image
SkuIdintegerUnique identifier of an SKU
NamestringImage Name
IsMainbooleanTells if the Image is the Main Image of the SKU
LabelstringImage Label

Response body example:

{
      "Id": 503,
      "ArchiveId": 155491,
      "SkuId": 1,
      "Name": "Royal-Canin-Feline-Urinary-SO",
      "IsMain": true,
      "Label": ""
}
Language
Authentication
URL
Click Try It! to start a request and see the response here!