Skip to main content
Anchor to CollectionRuleConditionObject

CollectionRuleConditionObject

union

Requires read_products access scope.

Specifies object for the condition of the rule.

•OBJECT

Specifies the taxonomy category to used for the condition.

•TaxonomyCategory!
non-null

The taxonomy category used as condition.

•OBJECT

Identifies a metafield definition used as a rule for the smart collection.

Anchor to metafieldConditionDisplayNamemetafieldConditionDisplayName
•String

The metafield condition display name associated to the rule.

•MetafieldDefinition!
non-null

The metafield definition associated with the condition.

•OBJECT

Specifies the condition for a Product Category field.

•ProductTaxonomyNode!
non-null

The value of the condition.

•OBJECT

Specifies the condition for a text field.

•String!
non-null

The value of the condition.


Was this section helpful?

Anchor to Fields with this unionFields with this union

•OBJECT

Represents at rule that's used to assign products to a collection.


Was this section helpful?