Skip to main content
Version: Canary 🚧

variantMediaAssign

Assign an media to a product variant.

Requires MANAGE_PRODUCTSpermission.
variantMediaAssign(
mediaId: ID!
variantId: ID!
): VariantMediaAssign

Arguments

variantMediaAssign.mediaId ● ID! non-null scalar

ID of a product media to assign to a variant.

variantMediaAssign.variantId ● ID! non-null scalar

ID of a product variant.

Type

VariantMediaAssign object

Assign an media to a product variant.

Requires MANAGE_PRODUCTSpermission.

Was this page helpful?