Runs

The Runs APi lets you create and update runs, as well as manage run and step status, schedule, and data.

Create a run

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

Mutation to create run from a procedure.

Query variables:

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