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"=>"photo", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"default", "value"=>"0", "datatype"=>"number"}, {"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":true,"alt_seo":"\u003cstring\u003e","video_url":"\u003cstring\u003e","type":"\u003cstring\u003e"}}