Skip to main content

variantMediaAssign Mutation

Assign an media to a product variant.

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

Arguments

variantMediaAssign.mediaId ● ID! non-null scalar miscellaneous

ID of a product media to assign to a variant.

variantMediaAssign.variantId ● ID! non-null scalar miscellaneous

ID of a product variant.

Type

VariantMediaAssign object products

Assign an media to a product variant.

Requires MANAGE_PRODUCTSpermission.