---
title: RuleBodyInput input | Wartiva GraphQL API
description: One-of input mirroring the RuleBody union. Exactly one variant field must be non-null; the variant set determines the rule's RuleType.
url: https://wartiva.com/api-docs/types/rule-body-input.html
updated: 2026-10-07
---

Policies and findings · GraphQL input

# `RuleBodyInput` input

One-of input mirroring the RuleBody union. Exactly one variant field must be non-null; the variant set determines the rule's [RuleType](https://wartiva.com/api-docs/types/rule-type.html).

## Fields

| Input Field | Description |
|---|---|
| `configuration` - [`RuleBodyConfigurationInput`](https://wartiva.com/api-docs/types/rule-body-configuration-input.html) | The body of a CONFIGURATION rule. |
| `file` - [`RuleBodyFileInput`](https://wartiva.com/api-docs/types/rule-body-file-input.html) | The body of a FILE rule. |
| `proprietary` - [`RuleBodyProprietaryInput`](https://wartiva.com/api-docs/types/rule-body-proprietary-input.html) | The body of a PROPRIETARY rule. |
| `search` - [`RuleBodySearchInput`](https://wartiva.com/api-docs/types/rule-body-search-input.html) | The body of a SEARCH rule. |
| `threshold` - [`RuleBodyThresholdInput`](https://wartiva.com/api-docs/types/rule-body-threshold-input.html) | The body of a THRESHOLD rule. |
| `vulnerability` - [`RuleBodyVulnerabilityInput`](https://wartiva.com/api-docs/types/rule-body-vulnerability-input.html) | The body of a VULNERABILITY rule. |

## Used by

- [`RuleInput`](https://wartiva.com/api-docs/types/rule-input.html) input: Input variant of Rule carrying its writable fields.

## Example

### Example

```json
{
  "configuration": RuleBodyConfigurationInput,
  "file": RuleBodyFileInput,
  "proprietary": RuleBodyProprietaryInput,
  "search": RuleBodySearchInput,
  "threshold": RuleBodyThresholdInput,
  "vulnerability": RuleBodyVulnerabilityInput
}

```

---

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