Update a product image
Updates an existing product image.
Only the display order, the stored dimensions and the referenced stored file can be changed. Two request fields are ignored on update even though they are accepted:
product— an image cannot be moved to a different product. It must still be sent with this method, because omitting it makes the request invalid.image— the stored file content cannot be replaced. To point the record at a different file, send its path inimage_pathinstead.
When the product is a seller product, the same changes are applied to the matching image of every offer of that product, and a copy is created for any offer that does not have one yet. See Marketplace Offer Propagation.
This operation never changes how many images a product has, so it does not trigger a listability recalculation.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product image.
The full representation of an existing product image to update. Only the display order, the stored dimensions and the file referenced through image_path are applied; product and image are accepted but ignored — see the operation description.
Required, but ignored. An image cannot be moved to a different product; omitting the field makes the request invalid.
1024Accepted but ignored. The stored file content cannot be replaced; use image_path to reference a different stored file.
Path of a file already present in the platform's media storage, to be referenced by this record instead of its current file. Accepted in requests only; never returned in a response.
products/2026/01/15/1024/6f1c2a48-9b3e-4d17-8f2a-0c5d7e9a1b34.jpgPosition of the image within the product's gallery. Lower values are shown first.
2Height of the image in pixels.
1200Width of the image in pixels.
800The updated product image.
An image attached to a product, together with its display order and stored dimensions.
Unique identifier of the product image.
55Identifier of the product the image belongs to.
1024Path of the stored image file within the platform's media storage. Generated by the platform when the file content is sent in image, or the value supplied in image_path when an already stored file is referenced.
products/2026/01/15/1024/6f1c2a48-9b3e-4d17-8f2a-0c5d7e9a1b34.jpgPosition of the image within the product's gallery. Lower values are shown first.
0Height of the image in pixels. null when the record was created by sending the file content in image, or when no dimension was ever recorded for it.
1200Width of the image in pixels. null when the record was created by sending the file content in image, or when no dimension was ever recorded for it.
800The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested product image does not exist.
PUT /api/v1/remote/1/product_image/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 148
{
"product": 1024,
"image": "text",
"image_path": "products/2026/01/15/1024/6f1c2a48-9b3e-4d17-8f2a-0c5d7e9a1b34.jpg",
"order": 2,
"height": 1200,
"width": 800
}{
"pk": 55,
"product": 1024,
"image": "products/2026/01/15/1024/6f1c2a48-9b3e-4d17-8f2a-0c5d7e9a1b34.jpg",
"order": 0,
"height": 1200,
"width": 800
}Last updated
Was this helpful?

