Skip to main content
Version: 3.x

variantMediaAssign

Assign an media to a product variant.

Requires one of the following permissions: MANAGE_PRODUCTS.

variantMediaAssign(
mediaId: ID!
variantId: ID!
): VariantMediaAssign

Arguments

mediaId (ID!)

ID of a product media to assign to a variant.

variantId (ID!)

ID of a product variant.

Type

VariantMediaAssign

Assign an media to a product variant.

Requires one of the following permissions: MANAGE_PRODUCTS.