---
title: RuleBodyConfiguration type | Wartiva GraphQL API
description: The body of a CONFIGURATION rule. Wartiva GraphQL API reference with arguments, fields, and examples. Browse related operations and types.
url: https://wartiva.com/api-docs/types/rule-body-configuration.html
updated: 2026-10-07
---

Policies and findings · GraphQL type

# `RuleBodyConfiguration` type

The body of a CONFIGURATION rule. The query gathers the object's attributes and is parameterized by the id of the object being evaluated; its result becomes the input to the rule function, which decides whether the object is in the required state.

## Fields

| Field Name | Description |
|---|---|
| `graphqlQuery` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The GraphQL query that is used to generate input to the rule function. |
| `functionType` - [`RuleFunctionType!`](https://wartiva.com/api-docs/types/rule-function-type.html) | The type of function that the rule is implemented in. |
| `function` - [`RuleFunction`](https://wartiva.com/api-docs/types/rule-function.html) | The function that implements the rule logic. Null when the function type is CUSTOM. |

## Used by

- [`RuleBody`](https://wartiva.com/api-docs/types/rule-body.html) union: A polymorphic body for a rule type.
- [`RuleType`](https://wartiva.com/api-docs/types/rule-type.html) enum: Describes how a rule gathers the input its function evaluates.

## Example

### Example

```json
{
  "graphqlQuery": "xyz789",
  "functionType": "CUSTOM",
  "function": RuleFunctionOpa
}

```

---

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