Create product image
POST/openapi/2026-07/products/:product_id/images
Create a new product image with the provided details.
Request
Path Parameters
The unique identifier for the product
- application/json
- Body
- Example
Bodyrequired
image objectrequired
Image
The URL of the image. Must be a valid URL
Alternative text for the image (used for accessibility or descriptions)
The width of the image in pixels. Must be greater than 0
The height of the image in pixels. Must be greater than 0
The position of the image relative to other images. Must be greater than 0
{
"image": {
"src": "string",
"alt": "string",
"width": 0,
"height": 0,
"position": 0
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
error code
error message
data object
image object
Image
The unique identifier for the image
The unique identifier for the product associated with the image
The position of the image relative to other images in the product gallery
The URL of the image
The width of the image in pixels
The height of the image in pixels
Alternative text for the image (used for accessibility or descriptions)
Image creation time
Image last updated time
{
"code": "string",
"message": "string",
"data": {
"image": {
"id": "string",
"product_id": "string",
"position": 0,
"src": "string",
"width": 0,
"height": 0,
"alt": "string",
"created_at": "string",
"updated_at": "string"
}
}
}