Admin API / Types

ProductVariantChangesInput

Input

Changes to some variants of a listing. A variant that no list names keeps its stored values.

input ProductVariantChangesInput

Input fields

FieldTypeDescription
add[ProductVariantInput!]New variants, after the stored variants, in this order. productVariantId gives VARIANT_NOT_FOUND.
change[ProductVariantChangeInput!]Stored variants to change.
remove[ID!]Stored variants to remove, with their stock. An ID that is not a variant of the listing gives VARIANT_NOT_FOUND.