Update Image
POST https://api.salla.dev/admin/v2/products/images/:image-id
This endpoint allows you to update a specific product's image by providing the ID of the image you want to update in the product path parameter. The updating of the image can be done either via providing a URL link to the image or uploading an image via multipart/form-data
media type.
💡 Note
You can update only one image 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
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":true,"alt_seo":"\u003cstring\u003e","video_url":"\u003cstring\u003e","type":"\u003cstring\u003e"}}