Attach Image by SKU

POST {{baseUrl}}/products/sku/:sku/images

This endpoint allows you to attach an image by providing the SKU value of the Product. Make sure that you upload a file of image format by sending the body data as multipart/form-data

Request Body

[{"name"=>"photo", "value"=>"@\"/home/user/Pictures/sku-image.png\"", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"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"}}