---
title: "CollectionRuleSetInput"
description: "Input fields for the collection rule set."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/collection-rule-set-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/collection-rule-set-input.md'
---
# CollectionRuleSetInput

Input fields for the collection rule set.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`CollectionRuleSetInput`

## Input Fields

* `appliedDisjunctively`

  [Boolean!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  Whether the products must meet any one or all the rules that are to be contained within the collection. If the value is true, the products must meet a minimum of one of the rules that are to be contained within the collection. If false, the products must meet all the rules that are to be contained within the collection.

* `rules`

  [[CollectionRuleInput]](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/collection-rule-input.md)

  Rules for assigning products to collections.

## Schema Definition

```graphql
input CollectionRuleSetInput { 
	appliedDisjunctively: Boolean!
	rules: [CollectionRuleInput] 
}
```

## Input field from

* [CollectionInput](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/collection-input.md).ruleSet

  The rules for assigning products to collections.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

