# FileFilterRule

One condition of a folder source's `file_filter`.

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 |
| --- | --- | --- | --- | --- |
| `field` | string | yes | What to test: `file_name`, `file_type`, `date_modified` or `content` (an emptiness check by size, not a text search). | one of: `"file_name"`, `"file_type"`, `"date_modified"`, `"content"` |
| `operator` | string | yes | `file_name`: contains, not_contains, starts_with, is. `file_type`: is, is_not. `date_modified`: within, before, after, between. `content`: is_empty, is_not_empty, is_near_empty, is_not_near_empty. |  |
| `value` | string, nullable | no | Text for `file_name`; a type for `file_type` (google_sheets, excel, csv, tsv, pdf, google_docs); `today`/`last_week`/`last_month` for `within`; a YYYY-MM-DD date for before / after / between. Omit for `content`. |  |
| `value_to` | string, nullable | no | End date (YYYY-MM-DD) for `between` only. |  |

## Used by

- [GET /rest/beta/automations/](https://dev-api.sheetgo.com/rest/reference/automations.md#get-rest-beta-automations)
- [GET /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#get-rest-beta-automations-id)
- [GET /rest/beta/workflows/](https://dev-api.sheetgo.com/rest/reference/workflows.md#get-rest-beta-workflows)
- [GET /rest/beta/workflows/{id}](https://dev-api.sheetgo.com/rest/reference/workflows.md#get-rest-beta-workflows-id)
- [PATCH /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#patch-rest-beta-automations-id)
- [PATCH /rest/beta/workflows/{id}](https://dev-api.sheetgo.com/rest/reference/workflows.md#patch-rest-beta-workflows-id)
- [POST /rest/beta/automations/](https://dev-api.sheetgo.com/rest/reference/automations.md#post-rest-beta-automations)
- [POST /rest/beta/workflows/](https://dev-api.sheetgo.com/rest/reference/workflows.md#post-rest-beta-workflows)
- [PUT /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#put-rest-beta-automations-id)
- [FileFilter-Input](https://dev-api.sheetgo.com/rest/reference/models/FileFilter-Input.md)
- [FileFilter-Output](https://dev-api.sheetgo.com/rest/reference/models/FileFilter-Output.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.
