Partner
Light Mode
Attach Image by SKU
POST
/products/sku/{sku}/imagesLast modified: a month ago
This 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
Path Params
sku
string
required
The Product SKU. List of Product SKU can be found here.
Body Params multipart/form-data
photo
string
optional
Upload an image as file
Example:
@/home/user/Pictures/sku-image.png
Request samples
Responses
Success(200)
Not Found(404)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"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"
}
}
Last modified: a month ago