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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;image&quot;:{&quot;original&quot;:{&quot;url&quot;:&quot;\u003cstring\u003e&quot;,&quot;width&quot;:&quot;\u003cnumber\u003e&quot;,&quot;height&quot;:&quot;\u003cnumber\u003e&quot;},&quot;standard_resolution&quot;:{&quot;url&quot;:&quot;\u003cstring\u003e&quot;,&quot;width&quot;:&quot;\u003cnumber\u003e&quot;,&quot;height&quot;:&quot;\u003cnumber\u003e&quot;},&quot;low_resolution&quot;:{&quot;url&quot;:&quot;\u003cstring\u003e&quot;,&quot;width&quot;:&quot;\u003cnumber\u003e&quot;,&quot;height&quot;:&quot;\u003cnumber\u003e&quot;},&quot;thumbnail&quot;:{&quot;url&quot;:&quot;\u003cstring\u003e&quot;,&quot;width&quot;:&quot;\u003cnumber\u003e&quot;,&quot;height&quot;:&quot;\u003cnumber\u003e&quot;}},&quot;sort&quot;:&quot;\u003cnumber\u003e&quot;,&quot;default&quot;:true,&quot;alt_seo&quot;:&quot;\u003cstring\u003e&quot;,&quot;video_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;}}