Attach Image

POST https://api.salla.dev/admin/v2/products/:product/images

You can add up to 10 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 do that either via URL link or uploading an image.

💡 Note

You can send one image only per request.

Request Body

[{"name"=>"enum", "value"=>"0,1", "datatype"=>"string"}, {"name"=>"description", "value"=>"Set the image as default", "datatype"=>"string"}, {"name"=>"example", "value"=>"1", "datatype"=>"number"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

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":true,"alt_seo":"\u003cstring\u003e","video_url":"\u003cstring\u003e","type":"\u003cstring\u003e"}}