Creates a new collection.
You can only call this method when authenticated as a Wix app or Wix user identity.
Collection info.
Collection.
curl -X POST \
'https://www.wixapis.com/stores/v1/collections' \
--data-binary '{
"collection": {
"name": "My New Collection"
}
}' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>'
{
"collection": {
"id": "81093e7d-a251-4a22-a238-df3aa816f3dc",
"name": "My New Collection",
"slug": "my-new-collection",
"visible": true,
"media": {
"items": []
}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.