collectionAddProducts
mutation
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
Specify the ID for the collection that needs updating. Note: Smart collections are not permitted.
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
Updated collection. If an error occurs, returns null.
A list of the errors encountered during the mutation.
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?