Update a special image
Replaces the special image. As with create, the existing record is removed and re-created, so changing image_type never leaves an orphaned row for the product's previous type.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the special image.
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 updated special image.
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.
The requested special image does not exist.
PUT /api/v1/remote/1/special_image/{id}/ 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?

