Create Stores Collection API

I am trying to create a product collection in Backend js. I can create a Product using the createProduct, and add it to a Collection using addProductsToCollection.

How do I create the Product Collection via Backend js?

The closest I can find is by directly using the Data API insert with the Product Collection details. However when executing, I get this error:

Unknown error. Request ID: 1605031156.31855058279511384. Message: Request failed with status code 404.

Any help would be much appreciated, thank you!

1 Like