# createRunHeartbeat

```graphql
mutation CreateRunHeartbeat($command: RunsCreateRunHeartbeatCommand!) {
  createRunHeartbeat(command: $command) {
    runId
    expiresAt
  }
}
```

Renew the execution lease of the current run generation.

## Arguments

| Name            | Type                                | Required | Description |
| --------------- | ----------------------------------- | -------- | ----------- |
| `command`       | RunsCreateRunHeartbeatCommand!      | Yes      |             |
| `command.runId` | ID!                                 | Yes      |             |
| `command.input` | RunsCreateRunHeartbeatCommandInput! | Yes      |             |

## Variables

```json
{
  "command": {
    "runId": "string",
    "input": {}
  }
}
```

## Responses

| Status | Description                                    |
| ------ | ---------------------------------------------- |
| 200    | The RunsHeartbeat! in data.createRunHeartbeat. |

## 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 CreateRunHeartbeat($command: RunsCreateRunHeartbeatCommand!) {\n  createRunHeartbeat(command: $command) {\n    runId\n    expiresAt\n  }\n}",
  "variables": {
    "command": {
      "runId": "string",
      "input": {}
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "createRunHeartbeat": {
      "runId": "string",
      "expiresAt": "string"
    }
  }
}
```
