Skip to main content
Version: Canary 🚧

collectionAddProducts

Adds products to a collection.

Requires MANAGE_PRODUCTSpermission.
collectionAddProducts(
collectionId: ID!
products: [ID!]!
): CollectionAddProducts

Arguments

collectionAddProducts.collectionId ● ID! non-null scalar

ID of a collection.

collectionAddProducts.products ● [ID!]! non-null scalar

List of product IDs.

Type

CollectionAddProducts object

Adds products to a collection.

Requires MANAGE_PRODUCTSpermission.

Was this page helpful?