The REST Admin API is a legacy API as of October 1, 2024. All apps and integrations should be built with the GraphQL Admin API. For details and migration steps, visit our migration guide.
products
access scope.
A smart collection is a grouping of products defined by rules that are set by the merchant. Shopify automatically changes the contents of a smart collection based on the rules. Smart collections, like other types of collections, are used to break down the catalog of products into categories and make the shop easier to browse.
By default, a store can have up to 5000 smart collections.
The Collect resource is used to connect a product to a smart collection. However, these collects can't be added or removed from the API as they're managed by the rules of the smart collection.
You can use the CustomCollection resource to work with collections where each product in the collection is manually chosen by the merchant.
title
.
Used in shop themes by the Liquid templating language to refer to the smart collection. (maximum: 255 characters)null
when the collection is hidden.The list of rules that define what products go into the smart collection. Each rule has the following properties:
suffix
.liquid.products
is specified but empty, any previously sorted products are cleared.