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

Policies and findings · GraphQL input

# `RuleBodyFileInput` input

Input variant of RuleBodyFile.

## Fields

| Input Field | Description |
|---|---|
| `pathGlob` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The paths checked, as an absolute glob. See [RuleBodyFile](https://wartiva.com/api-docs/types/rule-body-file.html). |
| `pathSensorId` - [`PathSensorId`](https://wartiva.com/api-docs/types/path-sensor-id.html) | When set, only paths this path sensor collected are checked. It must be one of your organization's sensors. |
| `existence` - [`RuleFileExistence`](https://wartiva.com/api-docs/types/rule-file-existence.html) | Requires matching paths to be present or absent on each endpoint. A rule with this set must apply to ENDPOINT and set no other check. |
| `contents` - [`RuleFileContentsInput`](https://wartiva.com/api-docs/types/rule-file-contents-input.html) | The content check each matching file must pass. A rule with a file check must apply to ENDPOINT_PATH. |
| `permissions` - [`RuleFilePermissionsInput`](https://wartiva.com/api-docs/types/rule-file-permissions-input.html) | The permission check each matching file must pass. |
| `ownership` - [`RuleFileOwnershipInput`](https://wartiva.com/api-docs/types/rule-file-ownership-input.html) | The ownership check each matching file must pass. |

## Used by

- [`RuleBodyInput`](https://wartiva.com/api-docs/types/rule-body-input.html) input: One-of input mirroring the RuleBody union.

## Example

### Example

```json
{
  "pathGlob": "xyz789",
  "pathSensorId": PathSensorId,
  "existence": "MUST_EXIST",
  "contents": RuleFileContentsInput,
  "permissions": RuleFilePermissionsInput,
  "ownership": RuleFileOwnershipInput
}

```

---

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