Anchor to productVariantLeaveSellingPlanGroupsproduct
productVariantLeaveSellingPlanGroups
mutation
Requires access scope as well as any of
,
access scopes. Also: The user must have
permissions.
Remove multiple groups from a product variant.
Anchor to Arguments
Arguments
- •ID!required
The ID of the product variant.
- Anchor to sellingPlanGroupIdsselling•
Plan Group Ids [ID!]!required The IDs of the selling plan groups to leave.
Was this section helpful?
Anchor to ProductVariantLeaveSellingPlanGroupsPayload returnsProductVariantLeaveSellingPlanGroupsPayload returns
- Anchor to productVariantproduct•
Variant The product variant object.
- 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 productVariantLeaveSellingPlanGroups($id: ID!, $sellingPlanGroupIds: [ID!]!) {
productVariantLeaveSellingPlanGroups(id: $id, sellingPlanGroupIds: $sellingPlanGroupIds) {
productVariant {
# ProductVariant fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"sellingPlanGroupIds": [
"gid://shopify/<objectName>/10079785100"
]
}
{
"id": "gid://shopify/<objectName>/10079785100",
"sellingPlanGroupIds": [
"gid://shopify/<objectName>/10079785100"
]
}