Anchor to section titled 'undefined'

sellingPlanGroupRemoveProducts
mutation

Requires write_products access scope as well as any of write_own_subscription_contracts, write_purchase_options access scopes. Also: The user must have manage_orders_information permissions.

Removes multiple products from a selling plan group.


Anchor to id
id
required

The ID of the selling plan group.

Anchor to productIds
productIds
required

The IDs of the products to remove.


Was this section helpful?

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation sellingPlanGroupRemoveProducts($id: ID!, $productIds: [ID!]!) {
  sellingPlanGroupRemoveProducts(id: $id, productIds: $productIds) {
    removedProductIds
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100",
  "productIds": [
    "gid://shopify/<objectName>/10079785100"
  ]
}