An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Add a batch of products to the collection.
Arguments
id ● ID!non-null
Specify the ID for the collection that needs updating. Note: Smart collections are not permitted.
productIds ● [ID!]non-null
The ID of the product scheduled for addition to the collection. If the product already exists in the collection, an error will be triggered, and no products will be added.
Return
collection ● Collection
Updated collection. If an error occurs, returns null.
More
userErrors ● [UserError]!non-null
A list of the errors encountered during the mutation.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?