---
title: RuleBody union | Wartiva GraphQL API
description: A polymorphic body for a rule type. The variant matches the rule's RuleType. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/rule-body.html
updated: 2026-10-07
---

Policies and findings · GraphQL union

# `RuleBody` union

A polymorphic body for a rule type. The variant matches the rule's [RuleType](https://wartiva.com/api-docs/types/rule-type.html).

## Possible types

- [`RuleBodyConfiguration`](https://wartiva.com/api-docs/types/rule-body-configuration.html)
- [`RuleBodyFile`](https://wartiva.com/api-docs/types/rule-body-file.html)
- [`RuleBodyProprietary`](https://wartiva.com/api-docs/types/rule-body-proprietary.html)
- [`RuleBodySearch`](https://wartiva.com/api-docs/types/rule-body-search.html)
- [`RuleBodyThreshold`](https://wartiva.com/api-docs/types/rule-body-threshold.html)
- [`RuleBodyVulnerability`](https://wartiva.com/api-docs/types/rule-body-vulnerability.html)

## Used by

- [`Rule`](https://wartiva.com/api-docs/types/rule.html) type: A policy rule evaluated against graph objects.

## Example

### Example

```json
RuleBodyConfiguration

```

---

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