---
title: RuleApplyToOptionInput input | Wartiva GraphQL API
description: Input variant of RuleApplyToOption. The operator is optional and defaults to EQUALS. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/rule-apply-to-option-input.html
updated: 2026-10-07
---

Policies and findings · GraphQL input

# `RuleApplyToOptionInput` input

Input variant of [RuleApplyToOption](https://wartiva.com/api-docs/types/rule-apply-to-option.html). The operator is optional and defaults to EQUALS.

## Fields

| Input Field | Description |
|---|---|
| `key` - [`RuleApplyToOptionKey!`](https://wartiva.com/api-docs/types/rule-apply-to-option-key.html) | The option key identifying which attribute to constrain. |
| `operator` - [`RuleApplyToOperator`](https://wartiva.com/api-docs/types/rule-apply-to-operator.html) | The comparison applied between value and the object's attribute. Defaults to EQUALS. Default = `EQUALS` |
| `value` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The value the object's attribute is compared against. A comma-separated list for IN and NOT_IN. |

## Used by

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

## Example

### Example

```json
{
  "key": "OS",
  "operator": "EQUALS",
  "value": "xyz789"
}

```

---

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