# FileFilter-Input

Which files inside a folder source are read. Groups nest.

Type: object

Fields typed as another model are documented on that model's page; fetch it before filling the field.

| Field | Type | Required | Description | Allowed values / default / constraints |
| --- | --- | --- | --- | --- |
| `condition_type` | string | no | `and`: every rule must match; `or`: any rule. | one of: `"and"`, `"or"`; default: `"and"` |
| `rules` | array of [FileFilter-Input](https://dev-api.sheetgo.com/rest/reference/models/FileFilter-Input.md) or [FileFilterRule](https://dev-api.sheetgo.com/rest/reference/models/FileFilterRule.md) | yes | Conditions or nested groups. | min items: 1 |

## Used by

- [POST /rest/beta/automations/](https://dev-api.sheetgo.com/rest/reference/automations.md#post-rest-beta-automations)
- [PUT /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#put-rest-beta-automations-id)
- [SourceFolder-Input](https://dev-api.sheetgo.com/rest/reference/models/SourceFolder-Input.md)

---

More: start page https://dev-api.sheetgo.com/rest/reference.md, everything in one file https://dev-api.sheetgo.com/rest/llms-full.txt, OpenAPI https://dev-api.sheetgo.com/rest/openapi.json.
