Anchor to sellingPlanGroupAddProductVariantsselling
sellingPlanGroupAddProductVariants
mutation
Requires access scope as well as any of
,
access scopes. Also: The user must have
permissions.
Adds multiple product variants to a selling plan group.
Anchor to Arguments
Arguments
- •ID!required
The ID of the selling plan group.
- Anchor to productVariantIdsproduct•
Variant Ids [ID!]!required The IDs of the product variants to add.
Was this section helpful?
Anchor to SellingPlanGroupAddProductVariantsPayload returnsSellingPlanGroupAddProductVariantsPayload 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 sellingPlanGroupAddProductVariants($id: ID!, $productVariantIds: [ID!]!) {
sellingPlanGroupAddProductVariants(id: $id, productVariantIds: $productVariantIds) {
sellingPlanGroup {
# SellingPlanGroup fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"productVariantIds": [
"gid://shopify/<objectName>/10079785100"
]
}
{
"id": "gid://shopify/<objectName>/10079785100",
"productVariantIds": [
"gid://shopify/<objectName>/10079785100"
]
}