Skip to main content
Anchor to productVariantDetachMedia

productVariantDetachMedia

mutation

Requires write_products access scope. Also: The user must have a permission to detach media from product variants.

Detaches media from product variants.

•ID!
required

Specifies the product to which the variants and media are associated.

•[ProductVariantDetachMediaInput!]!
required

A list of pairs of variants and media to be deleted from the variants.

Show input fields

Was this section helpful?

Anchor to ProductVariantDetachMediaPayload returnsProductVariantDetachMediaPayload returns

•Product

The product associated with the variants and media.

Show fields
•[ProductVariant!]

The product variants that were updated.

Show fields
•[MediaUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?