Anchor to productVariantJoinSellingPlanGroupsproduct
productVariantJoinSellingPlanGroups
mutation
Requires access scope as well as any of
,
access scopes. Also: The user must have
permissions.
Adds multiple selling plan groups to 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 add.
Was this section helpful?
Anchor to ProductVariantJoinSellingPlanGroupsPayload returnsProductVariantJoinSellingPlanGroupsPayload 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
1mutation productVariantJoinSellingPlanGroups($id: ID!, $sellingPlanGroupIds: [ID!]!) {2 productVariantJoinSellingPlanGroups(id: $id, sellingPlanGroupIds: $sellingPlanGroupIds) {3 productVariant {4 # ProductVariant fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100",3 "sellingPlanGroupIds": [4 "gid://shopify/<objectName>/10079785100"5 ]6}
{
"id": "gid://shopify/<objectName>/10079785100",
"sellingPlanGroupIds": [
"gid://shopify/<objectName>/10079785100"
]
}