---
title: updatePathSensor mutation | Wartiva GraphQL API
description: Updates an existing user-defined PathSensor. Default sensors cannot be mutated. Caller must be an organization admin of the sensor's org.
url: https://wartiva.com/api-docs/mutations/update-path-sensor.html
updated: 2026-10-07
---

Organizations and users · GraphQL mutation

# `updatePathSensor` mutation

Updates an existing user-defined PathSensor. Default sensors cannot be mutated. Caller must be an organization admin of the sensor's org.

## Response

Returns a [`PathSensorPayload!`](https://wartiva.com/api-docs/types/path-sensor-payload.html)

## Arguments

| Name | Description |
|---|---|
| `input` - [`UpdatePathSensorInput!`](https://wartiva.com/api-docs/types/update-path-sensor-input.html) | The PathSensor mutations to apply. |

## Example

### Query

```graphql
mutation updatePathSensor($input: UpdatePathSensorInput!) {
  updatePathSensor(input: $input) {
    node {
      id
      orgId
      name
      description
      path
      inclusions
      exclusions
      recursive
      interval
      collectChecksum
      checksumMaxBytes
      collectContents
      collectAcls
      contentMaxBytes
      isDefault
      enabled
      osTarget {
        ...PathSensorOsTargetFragment
      }
    }
  }
}

```

### Variables

```json
{"input": UpdatePathSensorInput}

```

### Response

```json
{"data": {"updatePathSensor": {"node": PathSensor}}}

```

## Related operations

- [`pathSensor`](https://wartiva.com/api-docs/queries/path-sensor.html) query: Retrieves a PathSensor configuration: an organization-wide instruction for endpoints to collect file metadata, and optionally checksums, ACLs, or…
- [`createPathSensor`](https://wartiva.com/api-docs/mutations/create-path-sensor.html) mutation: Creates a new PathSensor for the given organization.

---

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