Attach Image by SKU
POST
/products/sku/{sku}/imagesThis endpoint allows you to attach an image by passing the sku
as a path parameter.
:::check[Note]
Make sure that you upload a file of image format by sending the body data as multipart/form-data
:::products.read_write
- Products Read & Write
Request
The Product SKU. List of Product SKU can be found here.
Upload an image as file
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique identifier associated with the product image.
Sort Order
Whether or not the image the default picture
Alternative SEO Text for the image
Video web address.
Attachment Type
{
"status": 201,
"success": true,
"data": {
"id": 1908361139,
"image": {
"original": {
"url": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"width": 0,
"height": 0
},
"standard_resolution": {
"url": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"width": 1000,
"height": 424.597364568082
},
"low_resolution": {
"url": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"width": 500,
"height": 212.298682284041
},
"thumbnail": {
"url": "https://i.ibb.co/jyqRQfQ/avatar-male.webp",
"width": 120,
"height": 50.95168374816984
}
},
"sort": 0,
"default": false,
"alt_seo": null,
"video_url": "",
"type": "image"
}
}