---
title: PathState type | Wartiva GraphQL API
description: Path-state condition used within KeepAlive.pathState. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/path-state.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `PathState` type

Path-state condition used within KeepAlive.pathState.

## Fields

| Field Name | Description |
|---|---|
| `path` - [`String!`](https://wartiva.com/api-docs/types/string.html) | Filesystem path to monitor for existence. |
| `state` - [`Boolean!`](https://wartiva.com/api-docs/types/boolean.html) | When true, keep the job alive while the path exists. When false, keep it alive while the path does not exist. |

## Used by

- [`KeepAlive`](https://wartiva.com/api-docs/types/keep-alive.html) type: Keep-alive configuration for jobs.

## Example

### Example

```json
{"path": "xyz789", "state": true}

```

---

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