Organizations and users · GraphQL mutation

createPathSensor mutation

Creates a new PathSensor for the given organization. Default sensors are seeded automatically and cannot be created via this mutation. Caller must be an organization admin of input.orgId.

Response

Returns a PathSensorPayload!

Arguments

Name Description
input - CreatePathSensorInput! The new PathSensor to create.

Example

Query

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

Variables

{"input": CreatePathSensorInput}

Response

{"data": {"createPathSensor": {"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…
  • updatePathSensor mutation: Updates an existing user-defined PathSensor.