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
1mutation sellingPlanGroupRemoveProductVariants($id: ID!, $productVariantIds: [ID!]!) {2 sellingPlanGroupRemoveProductVariants(id: $id, productVariantIds: $productVariantIds) {3 removedProductVariantIds4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100",3 "productVariantIds": [4 "gid://shopify/<objectName>/10079785100"5 ]6}
{
"id": "gid://shopify/<objectName>/10079785100",
"productVariantIds": [
"gid://shopify/<objectName>/10079785100"
]
}