> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firstresonance.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a run

> Create a run from a procedure using the ION GraphQL API.

## Create a run

The following mutation creates a run from a procedure:

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

<Note>
  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.
</Note>

Use these query variables:

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