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

Policies and findings · GraphQL input

# `RuleFunctionOpaInput` input

Input variant of RuleFunctionOpa.

## Fields

| Input Field | Description |
|---|---|
| `opaPolicy` - [`String!`](https://wartiva.com/api-docs/types/string.html) | OPA Rego policy that implements the rule logic. |

## Used by

- [`RuleFunctionInput`](https://wartiva.com/api-docs/types/rule-function-input.html) input: One-of input mirroring the RuleFunction union.

## Example

### Example

```json
{"opaPolicy": "xyz789"}

```

---

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