---
title: sensorRequestReSubmitForService mutation | Wartiva API
description: Re-runs every sensor request that discovered the specified Service, as sensorRequestReSubmit does for one request.
url: https://wartiva.com/api-docs/mutations/sensor-request-re-submit-for-service.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL mutation

# `sensorRequestReSubmitForService` mutation

Re-runs every sensor request that discovered the specified [Service](https://wartiva.com/api-docs/types/service.html), as [sensorRequestReSubmit](https://wartiva.com/api-docs/mutations/sensor-request-re-submit.html) does for one request. Unlike that mutation, this one respects the organization's [sensorScopes](https://wartiva.com/api-docs/queries/sensor-scopes.html), so it returns an empty list when the scopes allow none of the sensors, when the service has no originating requests, or when the sensor no longer accepts requests. Requests are reset one at a time, so an error partway through leaves the earlier ones reset.

## Response

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

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The graph object id of the [Service](https://wartiva.com/api-docs/types/service.html). |

## Example

### Query

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

```

### Variables

```json
{"id": "4"}

```

### Response

```json
{
  "data": {
    "sensorRequestReSubmitForService": {
      "sensorRequests": [SensorRequest]
    }
  }
}

```

---

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