Anchor to productJoinSellingPlanGroupsproduct
productJoinSellingPlanGroups
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.
Anchor to Arguments
Arguments
- •ID!required
The ID of the product.
- Anchor to sellingPlanGroupIdsselling•
Plan Group Ids [ID!]!required The IDs of the selling plan groups to add.
Was this section helpful?
Anchor to ProductJoinSellingPlanGroupsPayload returnsProductJoinSellingPlanGroupsPayload returns
- Anchor to productproduct•
The product 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 productJoinSellingPlanGroups($id: ID!, $sellingPlanGroupIds: [ID!]!) {
productJoinSellingPlanGroups(id: $id, sellingPlanGroupIds: $sellingPlanGroupIds) {
product {
# Product 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"
]
}