---
title: RuleFileContentsInput input | Wartiva GraphQL API
description: Input variant of RuleFileContents. Wartiva GraphQL API reference with arguments, fields, and examples. Browse related operations and types.
url: https://wartiva.com/api-docs/types/rule-file-contents-input.html
updated: 2026-10-07
---

Policies and findings · GraphQL input

# `RuleFileContentsInput` input

Input variant of RuleFileContents.

## Fields

| Input Field | Description |
|---|---|
| `mustMatch` - [`String`](https://wartiva.com/api-docs/types/string.html) | A regular expression (RE2 syntax, ASCII characters only; see [RuleFileContents](https://wartiva.com/api-docs/types/rule-file-contents.html)) the collected contents must match. |
| `mustNotMatch` - [`String`](https://wartiva.com/api-docs/types/string.html) | A regular expression (RE2 syntax, ASCII characters only) the collected contents must not match. |
| `checksum` - [`String`](https://wartiva.com/api-docs/types/string.html) | The xxh3-128 checksum, as 32 hex characters, the file must have: the digest path sensors collect. |

## Used by

- [`RuleBodyFileInput`](https://wartiva.com/api-docs/types/rule-body-file-input.html) input: Input variant of RuleBodyFile.

## Example

### Example

```json
{
  "mustMatch": "abc123",
  "mustNotMatch": "abc123",
  "checksum": "abc123"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
