Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to collectionAddProductsV2

collectionAddProductsV2

mutation

Requires write_products access scope. Also: The user must have a permission to add products to a collection.

Asynchronously adds a set of products to a given collection. It can take a long time to run. Instead of returning a collection, it returns a job which should be polled.

ID!required

The ID of the collection that's being updated.

[ID!]!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?

Anchor to CollectionAddProductsV2Payload returnsCollectionAddProductsV2Payload returns

The asynchronous job adding the products.

The list of errors that occurred from executing the mutation.


Was this section helpful?