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!

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

  • pathSensor query: Retrieves a PathSensor configuration: an organization-wide instruction for endpoints to collect file metadata, and optionally checksums, ACLs, or…
  • createPathSensor mutation: Creates a new PathSensor for the given organization.