Anchor to sellingPlanGroupAddProductsselling
sellingPlanGroupAddProducts
mutation
Requires access scope as well as any of
,
access scopes. Also: The user must have
permissions.
Adds multiple products to a selling plan group.
Anchor to Arguments
Arguments
- •ID!required
The ID of the selling plan group.
- Anchor to productIdsproduct•
Ids [ID!]!required The IDs of the products to add.
Was this section helpful?
Anchor to SellingPlanGroupAddProductsPayload returnsSellingPlanGroupAddProductsPayload returns
- Anchor to sellingPlanGroupselling•
Plan Group The updated selling plan group.
- 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 sellingPlanGroupAddProducts($id: ID!, $productIds: [ID!]!) {
sellingPlanGroupAddProducts(id: $id, productIds: $productIds) {
sellingPlanGroup {
# SellingPlanGroup fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"productIds": [
"gid://shopify/<objectName>/10079785100"
]
}
{
"id": "gid://shopify/<objectName>/10079785100",
"productIds": [
"gid://shopify/<objectName>/10079785100"
]
}