Create a special image
Assigns the image_type role to a product's image. Because (product, image_type) is unique, any existing special image of the same type for the same product is replaced — the previous record is removed and this one is created in its place.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
Fields for creating or fully replacing a special image.
Identifier of the product the image belongs to.
Identifier of the product image to flag.
The role a special image plays for its product. Each type is unique per product.
base— the product's primary/base imageswatch— a color or material swatch imagelisting— the image used in product listingspicto— a pictogram / icon image
The special image was created.
A special image record — marks one of a product's images with a specific role.
Unique identifier of the special image.
Identifier of the product the image belongs to.
Identifier of the underlying product image that is being flagged.
The role a special image plays for its product. Each type is unique per product.
base— the product's primary/base imageswatch— a color or material swatch imagelisting— the image used in product listingspicto— a pictogram / icon image
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
POST /api/v1/remote/1/special_image/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"product": 340,
"product_image": 981,
"image_type": "base"
}{
"pk": 12,
"product": 340,
"product_image": 981,
"image_type": "base"
}Last updated
Was this helpful?

