[The manual for the New ION Experience has been released.\
\
Check it out!](https://docs.firstresonance.io/)

For the complete documentation index, see [llms.txt](https://manual.firstresonance.io/llms.txt). This page is also available as [Markdown](https://manual.firstresonance.io/api/examples/runs.md).

### Create a run[Direct link to heading](https://manual.firstresonance.io/api/examples/runs#create-a-run)

Copy

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

> _Mutation to create run from a procedure. This will not work if "Autogenerate run title" box is checked. if you do have it checked, simply remove "title" from the mutation block above and "title": "run title" from the Query Variables below._

Query variables:

Copy

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

[PreviousNotifications](https://manual.firstresonance.io/api/examples/notifications) [NextAutomatically updating fields in runs](https://manual.firstresonance.io/api/examples/automatically-updating-fields-in-runs)

Last updated 11 months ago
