Anchor to sellingPlanGroupRemoveProductVariantsselling
sellingPlanGroupRemoveProductVariants
mutation
Requires access scope as well as any of
,
access scopes. Also: The user must have
permissions.
Removes multiple product variants from a selling plan group.
Anchor to Arguments
Arguments
- •ID!required
The ID of the selling plan group.
- Anchor to productVariantIdsproduct•
Variant Ids [ID!]!required The IDs of the product variants to remove.
Was this section helpful?
Anchor to SellingPlanGroupRemoveProductVariantsPayload returnsSellingPlanGroupRemoveProductVariantsPayload returns
- Anchor to removedProductVariantIdsremoved•
Product Variant Ids The removed product variant ids.
- Anchor to userErrorsuser•
Errors [SellingPlan non-nullGroup User Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation sellingPlanGroupRemoveProductVariants($id: ID!, $productVariantIds: [ID!]!) {
sellingPlanGroupRemoveProductVariants(id: $id, productVariantIds: $productVariantIds) {
removedProductVariantIds
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"productVariantIds": [
"gid://shopify/<objectName>/10079785100"
]
}
{
"id": "gid://shopify/<objectName>/10079785100",
"productVariantIds": [
"gid://shopify/<objectName>/10079785100"
]
}