Anchor to sellingPlanGroupRemoveProductsselling
sellingPlanGroupRemoveProducts
mutation
Requires access scope as well as any of
,
access scopes. Also: The user must have
permissions.
Removes multiple products from 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 remove.
Was this section helpful?
Anchor to SellingPlanGroupRemoveProductsPayload returnsSellingPlanGroupRemoveProductsPayload returns
- Anchor to removedProductIdsremoved•
Product Ids The removed product ids.
- 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 sellingPlanGroupRemoveProducts($id: ID!, $productIds: [ID!]!) {2 sellingPlanGroupRemoveProducts(id: $id, productIds: $productIds) {3 removedProductIds4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100",3 "productIds": [4 "gid://shopify/<objectName>/10079785100"5 ]6}
{
"id": "gid://shopify/<objectName>/10079785100",
"productIds": [
"gid://shopify/<objectName>/10079785100"
]
}