Skip to main content

VariantMediaAssign Object

Assign an media to a product variant.

Requires MANAGE_PRODUCTSpermission.
type VariantMediaAssign {
productVariant: ProductVariant
media: ProductMedia
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
}

Fields

VariantMediaAssign.productVariant ● ProductVariant object products

VariantMediaAssign.media ● ProductMedia object products

VariantMediaAssign.productErrors ● [ProductError!]! deprecated non-null object products

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

VariantMediaAssign.errors ● [ProductError!]! non-null object products

Returned By

variantMediaAssign mutation