# cancelInputRequest

```graphql
mutation CancelInputRequest($command: RunsCancelInputRequestCommand!) {
  cancelInputRequest(command: $command) {
    inputRequestId
    projectId
    runId
    kind
    responderRules {
      excludeRunStarters
      requiredCapability
      stepUpSeconds
      excludedUserIds
    }
    toolCall {
      name
      arguments
    }
    delivery
    title
    fields
    status
    requestedResponderType
    response
    createdAt
    expiresAt
    resolvedAt
    toolCallId
    conversationId
    description
    metadata
    canRespond
  }
}
```

Cancel an input request.

## Arguments

| Name                     | Type                           | Required | Description                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------ | ------------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `command`                | RunsCancelInputRequestCommand! | Yes      |                                                                                                                                                                                                                                                                                                                                                                   |
| `command.inputRequestId` | ID!                            | Yes      | Input request to cancel. A fresh cancellation of an already-resolved request returns 409; only an open request can be cancelled. Requires project.runs.write on the run’s project and, for a request in a conversation, editor access on that conversation. An authorized retry of the identical request with the same idempotency key returns its stored result. |
| `idempotencyKey`         | String                         |          | Retry key for this mutation (1–128 characters); overrides Idempotency-Key.                                                                                                                                                                                                                                                                                        |

## Variables

```json
{
  "command": {
    "inputRequestId": "string"
  }
}
```

## Responses

| Status | Description                                       |
| ------ | ------------------------------------------------- |
| 200    | The RunsInputRequest! in data.cancelInputRequest. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CancelInputRequest($command: RunsCancelInputRequestCommand!) {\n  cancelInputRequest(command: $command) {\n    inputRequestId\n    projectId\n    runId\n    kind\n    responderRules {\n      excludeRunStarters\n      requiredCapability\n      stepUpSeconds\n      excludedUserIds\n    }\n    toolCall {\n      name\n      arguments\n    }\n    delivery\n    title\n    fields\n    status\n    requestedResponderType\n    response\n    createdAt\n    expiresAt\n    resolvedAt\n    toolCallId\n    conversationId\n    description\n    metadata\n    canRespond\n  }\n}",
  "variables": {
    "command": {
      "inputRequestId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "cancelInputRequest": {
      "inputRequestId": "string",
      "projectId": "string",
      "runId": "string",
      "kind": "string",
      "responderRules": {
        "excludeRunStarters": false,
        "requiredCapability": "string",
        "stepUpSeconds": 0,
        "excludedUserIds": [
          "string"
        ]
      },
      "toolCall": {
        "name": "string",
        "arguments": {}
      },
      "delivery": "string",
      "title": "string",
      "fields": [
        {}
      ],
      "status": "string",
      "requestedResponderType": "string",
      "response": {},
      "createdAt": "string",
      "expiresAt": "string",
      "resolvedAt": "string",
      "toolCallId": "string",
      "conversationId": "string",
      "description": "string",
      "metadata": {},
      "canRespond": false
    }
  }
}
```
