Parameters
JSON body
Request body
application/jsonproductCodestringRequiredProduct code the variant belongs to.
Example
my-productvariantCodestringRequiredVariant code to set the image for.
Example
variant-xlimageTokenstringOptionalBlob token of the image to set as main. Must be an image from the product gallery. Omit or pass null to remove the current main image.