---
title: "CollectionRuleSetInput"
description: "分类的规则集的输入字段"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/inputs/collection-rule-set-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/inputs/collection-rule-set-input.md'
---
# CollectionRuleSetInput

分类的规则集的输入字段

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

## Type Signature

`CollectionRuleSetInput`

## Input Fields

* `appliedDisjunctively`

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

  产品是否必须符合要包含在集合中的任何或所有规则。如果为 true，则产品必须至少符合要包含在集合中的规则之一。如果为 false，则产品必须符合要包含在分类中的所有规则

* `rules`

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

  用于将产品分配到分类的规则

## Schema Definition

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

## Input field from

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

  用于将产品分配到分类的规则

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

