Attach Image
POST {{baseUrl}}/products/:product/images
This endpoint allows you to add up to 10 images to a specific product by providing the ID of the product you want to attach these images in the product path parameter. You can do that either via URL link or by uploading an image.
💡 Note
You can send one image only per request.
Request Body
[{"name"=>"photo", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"default", "value"=>"<integer>", "datatype"=>"string"}, {"name"=>"sort", "value"=>"<number>", "datatype"=>"string"}, {"name"=>"alt", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"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"}}