## Create a run

The following mutation creates a run from a procedure:

```
mutation CreateRun($input: CreateRunInput!) {
    createRun(input: $input) {
        run {
            id title procedureId createdById
            dueDate assignedToId description
            partInventory {
                serialNumber
            }
        }
    }
}
```

This mutation does not work if the “Autogenerate run title” box is checked. If you have it checked, remove `title` from the mutation block above and `"title": "run title"` from the query variables below.

Use these query variables:

```
{
    "input": {
        "title": "run title",
        "procedureId": 1,
        "dueDate": "2021-09-28T16:57:37",
        "partInventoryId": 2
    }
}
```
