Admin API / Types
ProductVariantMediaInput
InputOne variant image. Set exactly one field.
input ProductVariantMediaInputInput fields
| Field | Type | Description |
|---|---|---|
fileUrl | URL | The public URL of a PUBLIC District files image, with the rules of ProductMediaInput.fileUrl. |
mediaId | ID | An 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. |