Anchor to collectionRemoveProductscollection
mutationcollection Remove Products
Requires access scope. Also: The user must have a permission to remove products from a collection.
Removes a set of products from a given collection. The mutation can take a long time to run. Instead of returning an updated collection the mutation returns a job, which should be polled. For use with manual collections only.
Anchor to Arguments
Arguments
- •ID!required
The ID of the collection to remove products from. The ID must reference an existing manual collection.
- Anchor to productIdsproduct•[ID!]!required
Ids The IDs of products to remove from the collection. The mutation doesn't validate that the products belong to the collection or whether the products exist.
Was this section helpful?
- •Job
The asynchronous job removing the products.
- Anchor to userErrorsuser•[User
Errors Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?