Anchor to collectionAddProductsV2collection
mutationcollection Add Products V2
Requires access scope. Also: The user must have a permission to add products to a collection.
Adds products to a Collection asynchronously and returns a Job to track the operation's progress. This mutation handles large product sets efficiently by processing them in the background.
You can poll the returned job using the job query to monitor completion status.
Anchor to Arguments
Arguments
- •ID!required
The ID of the collection that's being updated.
- Anchor to productIdsproduct•[ID!]!
Ids required The IDs of the products that are being added to the collection. If the collection's sort order is manual, the products will be added in the order in which they are provided.
Was this section helpful?
- •Job
The asynchronous job adding the products.
- Anchor to userErrorsuser•[Collection
Errors Add Products V2User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?