---
title: sensorRequestSubmit mutation | Wartiva GraphQL API
description: Runs a Sensor against one device IP address, and optionally one port, by creating a SensorRequest. Wartiva GraphQL API reference with examples.
url: https://wartiva.com/api-docs/mutations/sensor-request-submit.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL mutation

# `sensorRequestSubmit` mutation

Runs a [Sensor](https://wartiva.com/api-docs/types/sensor.html) against one device IP address, and optionally one port, by creating a [SensorRequest](https://wartiva.com/api-docs/types/sensor-request.html). The device, zone, sensor, IP address, protocol, and port are validated first; the IP address must suit the zone. If a request with the same criteria already exists, it is reset and run again instead of being duplicated, and the existing request's settings are kept. Intended for troubleshooting; requests submitted this way bypass the organization's [sensorScopes](https://wartiva.com/api-docs/queries/sensor-scopes.html). Restricted to administrators of the device's organization.

## Response

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

## Arguments

| Name | Description |
|---|---|
| `input` - [`SensorRequestInput!`](https://wartiva.com/api-docs/types/sensor-request-input.html) | The input defining the sensor request to submit. |

## Example

### Query

```graphql
mutation sensorRequestSubmit($input: SensorRequestInput!) {
  sensorRequestSubmit(input: $input) {
    sensorRequest {
      id
      device {
        ...DeviceFragment
      }
      sensor {
        ...SensorFragment
      }
      zone
      ip {
        ...IpAddressFragment
      }
      protocol
      port
      args
      created
      state {
        ...SensorRequestStateFragment
      }
      runIds
      runs {
        ...SensorRequestRunFragment
      }
    }
  }
}

```

### Variables

```json
{"input": SensorRequestInput}

```

### Response

```json
{
  "data": {
    "sensorRequestSubmit": {
      "sensorRequest": SensorRequest
    }
  }
}

```

---

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