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

Partially update a product image

Updates one or more fields of an existing product image. Only the fields you send are changed, and sending no changeable field leaves the record untouched.

The same restrictions as the full update apply: product and image are ignored if sent, and only the display order, the stored dimensions and the file referenced through image_path can be changed. Offer propagation behaves as described under Marketplace Offer Propagation, and no listability recalculation is triggered.

patch
/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 fields to change on an existing product image. Every field is optional; only the fields you send are applied. product and image are accepted but ignored — see the operation description.

productintegerOptional

Accepted but ignored. An image cannot be moved to a different product.

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
patch/product_image/{id}/
PATCH /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?