Create a collection
Creates a manual or automatic (rule-based) collection. For automatic collections, send the full desired rule set under rules.
Required scope: write_collections (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Body
"On Sale"
Rich text HTML. Reads come back as this (plain text) plus description_html.
1-based position among the store's collections; the server shifts its siblings. The nested products reposition endpoints, unlike this, take 0-based indexes.
A signed_id from files.upload() for the landscape image, or null to remove it.
A signed_id from files.upload() for the square image, or null to remove it.
When true, membership is materialized from rules instead of curated by hand.
Whether a product must match all rules or any of them. Defaults to all.
all, any Default product sort for the storefront listing; a shopper's own sort wins. Defaults to manual.
manual, best_selling, price asc, price desc, available_on desc, available_on asc, name asc, name desc The complete desired rule set. Entries with an id update, entries without one are created, and existing rules left out are removed.
Custom field values, each validated against its definition.
Response
collection created
manual, best_selling, price asc, price desc, available_on desc, available_on asc, name asc, name desc all, any 
