Create a product image
Adds an image to a product.
Supply the image in one of the two ways described under Supplying the Image: send the file content in image, or reference an already stored file with image_path together with height and width. Requests that satisfy neither form are rejected with the business error product_image_500_1. Note that a record created through image always ends up with height and width set to null — see the caveat under Supplying the Image.
order is required on create; see Display Order.
The image is created with an active status; the status of an image is not part of this API.
When the product is a seller product, the new image is copied to every offer of that product, as described under Marketplace Offer Propagation.
If the product had no active image before this one, the listability of the product's variant group is recalculated. That recalculation is governed by the LISTABLE_PRODUCT_RULES and LIST_SIMPLE_INSTEAD_OF_META dynamic settings; see Listability Side Effects and Dynamic Settings & Environment Variables.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The image to attach to a product. Supply the file content in image, or reference an already stored file with image_path together with height and width. See Supplying the Image.
Identifier of the product the image belongs to.
1024The file content to store, as text — this is not a binary file upload. The stored path and name are determined by the platform, and the stored record always ends up without dimensions. Takes precedence over image_path if both are sent. See the caveat under Supplying the Image.
Path of a file that is already present in the platform's media storage, to be referenced instead of sending new content. Whenever this field is sent, height and width are both required — including when it is sent alongside image and therefore ignored. 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. Required.
0Height of the image in pixels. Required when image_path is sent. Discarded when image is sent — the created record is then stored with a null height.
1200Width of the image in pixels. Required when image_path is sent. Discarded when image is sent — the created record is then stored with a null width.
800The product image was created.
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 request is well-formed but does not supply the image in an accepted form — neither image nor image_path was sent, or image_path was sent without both height and width (product_image_500_1).
POST /api/v1/remote/1/product_image/ 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": 0,
"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?

