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
mutation productVariantJoinSellingPlanGroups($id: ID!, $sellingPlanGroupIds: [ID!]!) {
productVariantJoinSellingPlanGroups(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"
]
}