Admin API / Types

ProductVariantMediaInput

Input

One variant image. Set exactly one field.

input ProductVariantMediaInput

Input fields

FieldTypeDescription
fileUrlURLThe public URL of a PUBLIC District files image, with the rules of ProductMediaInput.fileUrl.
mediaIdIDAn image that the caller uploaded, taken once it has its stored original, whatever its status. A video upload that finished processing and whose metadata records its duration gives MEDIA_TYPE_NOT_ALLOWED. Another video upload, such as one that is still processing, gives MEDIA_NOT_FOUND, as an unknown upload, another user's upload and a Product.media ID do.