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
Scope: products.read_write
- Products Read & Write
Request Body
[{"name"=>"photo", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cnumber\u003e","image":{"original":{"url":"\u003cstring\u003e","width":"\u003cnumber\u003e","height":"\u003cnumber\u003e"},"standard_resolution":{"url":"\u003cstring\u003e","width":"\u003cnumber\u003e","height":"\u003cnumber\u003e"},"low_resolution":{"url":"\u003cstring\u003e","width":"\u003cnumber\u003e","height":"\u003cnumber\u003e"},"thumbnail":{"url":"\u003cstring\u003e","width":"\u003cnumber\u003e","height":"\u003cnumber\u003e"}},"sort":"\u003cnumber\u003e","default":false,"alt_seo":"\u003cnull\u003e","video_url":"\u003cstring\u003e","type":"\u003cstring\u003e"}}