For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 in image_path instead.

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.

put
/product_image/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the product image.

Body

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.

productintegerRequired

Required, but ignored. An image cannot be moved to a different product; omitting the field makes the request invalid.

Example: 1024
imagestringOptional

Accepted but ignored. The stored file content cannot be replaced; use image_path to reference a different stored file.

image_pathstringOptional

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.

Example: products/2026/01/15/1024/6f1c2a48-9b3e-4d17-8f2a-0c5d7e9a1b34.jpg
orderinteger · max: 32767Optional

Position of the image within the product's gallery. Lower values are shown first.

Example: 2
heightinteger · max: 2147483647 · nullableOptional

Height of the image in pixels.

Example: 1200
widthinteger · max: 2147483647 · nullableOptional

Width of the image in pixels.

Example: 800
Responses
200

The updated product image.

application/json

An image attached to a product, together with its display order and stored dimensions.

pkintegerRequired

Unique identifier of the product image.

Example: 55
productintegerRequired

Identifier of the product the image belongs to.

Example: 1024
imagestringRequired

Path 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.

Example: products/2026/01/15/1024/6f1c2a48-9b3e-4d17-8f2a-0c5d7e9a1b34.jpg
orderintegerRequired

Position of the image within the product's gallery. Lower values are shown first.

Example: 0
heightinteger · nullableRequired

Height 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.

Example: 1200
widthinteger · nullableRequired

Width 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.

Example: 800
put/product_image/{id}/
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?