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!
Arguments
| Name | Description |
|---|---|
input - UpdatePathSensorInput!
|
The PathSensor mutations to apply. |
Example
Query
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
{"input": UpdatePathSensorInput}
Response
{"data": {"updatePathSensor": {"node": PathSensor}}}
Related operations
pathSensorquery: Retrieves a PathSensor configuration: an organization-wide instruction for endpoints to collect file metadata, and optionally checksums, ACLs, or…createPathSensormutation: Creates a new PathSensor for the given organization.