Partially update a special image
Updates one or more fields of a special image. Any field you omit keeps its current value on the existing record (product, product_image, and image_type fall back to the stored instance).
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 partially updating a special image. All fields are optional; omitted fields keep their current value.
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.
PATCH /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: 21
{
"product_image": 982
}{
"pk": 12,
"product": 340,
"product_image": 981,
"image_type": "base"
}Last updated
Was this helpful?

