Creates a new collection.
You can only call this method when authenticated as a Wix app or Wix user identity.
function createCollection(
collection: Collection,
): Promise<CreateCollectionResponse>;
Collection info.
import { products } from "@wix/stores";
async function createCollection(collection) {
const response = await products.createCollection(collection);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.