Attach Image

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

You can add unlimited images to a specific product by providing the ID of the product you want to attach these images to it in the product path parameter.

You can send one image only per request.

OAuth Scopes


products.read products.read_write

Request Body

{"photo"=>"uploaded image file", "default"=>0, "sort"=>0, "alt"=>"text"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{"status":201,"success":true,"data":{"id":1829325271,"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":606.7567567567568},"low_resolution":{"url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","width":500,"height":303.3783783783784},"thumbnail":{"url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","width":120,"height":72.81081081081082}},"sort":0,"default":false,"alt_seo":null,"video_url":"","type":"image"}}