N1Developer docsv1

TESTED LIVE

Machines

10 real calls against a live Core. Open a call for its headers, request and response.

createMachine

151MachinesList · create-app-default-runningownerPOST /graphql400 VALIDATION_FAILEDAs decided11 ms

App change: a new machine starts IDLE.

Operation
createMachine
Request id
01a14ba9-e59c-7699-91e8-088429ed96a0
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "idempotency-key": "key-151",
  "content-type": "application/json"
}

Query

mutation AuditCreateMachineRun($input: MachineInput!) { createMachine(input: $input) { id status } }

Variables

{
  "input": {
    "name": "Audit Lathe",
    "code": "AUD-01",
    "model": "Synthetic",
    "type": "CNC_LATHE",
    "location": "Bay 1",
    "status": "RUNNING",
    "notes": ""
  }
}

Response · HTTP 400

{
  "errors": [
    {
      "message": "The request has invalid fields.",
      "locations": [
        {
          "line": 1,
          "column": 57
        }
      ],
      "path": [
        "createMachine"
      ],
      "extensions": {
        "code": "VALIDATION_FAILED",
        "message": "The request has invalid fields.",
        "requestId": "01a14ba9-e59c-7699-91e8-088429ed96a0",
        "details": [
          {
            "path": "status",
            "message": "RUNNING requires assigning a job"
          }
        ]
      }
    }
  ],
  "data": null
}
152MachinesList · createownerPOST /graphql200 OKAs expected45 ms
Operation
createMachine
Request id
01a14ba9-e6ac-7178-9365-d8355c21f253
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "idempotency-key": "key-152",
  "content-type": "application/json"
}

Query

mutation AuditCreateMachine($input: MachineInput!) { createMachine(input: $input) { ...M } }
fragment M on Machine { id code name model type location status notes currentWork { workOrderId title operator } currentAssignment { id jobOperationId jobCardId operationName startedAt } }

Variables

{
  "input": {
    "name": "Audit Lathe",
    "code": "AUD-02",
    "model": "Synthetic",
    "type": "CNC_LATHE",
    "location": "Bay 1",
    "status": "IDLE",
    "notes": "Synthetic"
  }
}

Response · HTTP 200

{
  "data": {
    "createMachine": {
      "id": "01a14ba9-e6fa-7893-bf9c-c9ab059a6b9f",
      "code": "AUD-02",
      "name": "Audit Lathe",
      "model": "Synthetic",
      "type": "CNC_LATHE",
      "location": "Bay 1",
      "status": "IDLE",
      "notes": "Synthetic",
      "currentWork": null,
      "currentAssignment": null
    }
  }
}

machine

154MachineDetails · loadownerPOST /graphql200 OKAs expected29 ms
Operation
machine
Request id
01a14ba9-e917-7902-94d2-0e50b531ab32
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditMachine($id: ID!) { machine(id: $id) { ...M } }
fragment M on Machine { id code name model type location status notes currentWork { workOrderId title operator } currentAssignment { id jobOperationId jobCardId operationName startedAt } }

Variables

{
  "id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98"
}

Response · HTTP 200

{
  "data": {
    "machine": {
      "id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98",
      "code": "MC-137E4B98",
      "name": "CNC Lathe 2",
      "model": "Demo LT-200",
      "type": "CNC_LATHE",
      "location": "Bay 1",
      "status": "IDLE",
      "notes": "",
      "currentWork": null,
      "currentAssignment": null
    }
  }
}

machines

017Discovery · live-idsownerPOST /graphql200 OKAs expected38 ms
Operation
customers+orders+jobCards+machines+quotes+invoices+users
Request id
01a14ba9-3c90-73b7-9e24-7ccc32cb13c5
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditDiscovery {
  customers(first: 10) { edges { node { id name billingAddress { city } } } }
  orders(first: 10) { edges { node { id number jobCardId customerId status routeCardNo poNumber } } }
  jobCards(first: 10) { edges { node { id orderId code qrValue status billing materialQc designApproval operations { id seq name status operatorId } } } }
  machines(first: 10) { edges { node { id code status } } }
  quotes(first: 10) { edges { node { id status orderId customerId } } }
  invoices(first: 10) { edges { node { id status orderId jobCardId } } }
  users(first: 30) { edges { node { id role name status } } } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "customers": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e56a-7478-990d-ceec492d63e7",
            "name": "Demo Agro Implements",
            "billingAddress": {
              "city": "Tiruppur"
            }
          }
        },
        {
          "node": {
            "id": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
            "name": "Demo Auto Components",
            "billingAddress": {
              "city": "Tiruppur"
            }
          }
        },
        {
          "node": {
            "id": "01a14ba6-e579-7091-b879-fd026c5ab537",
            "name": "Demo Hydraulics",
            "billingAddress": {
              "city": "Bengaluru"
            }
          }
        },
        {
          "node": {
            "id": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
            "name": "Demo Pumps & Valves",
            "billingAddress": {
              "city": "Coimbatore"
            }
          }
        },
        {
          "node": {
            "id": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
            "name": "Demo Textile Machinery",
            "billingAddress": {
              "city": "Coimbatore"
            }
          }
        }
      ]
    },
    "orders": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e66c-7460-9ced-7abbb006f491",
            "number": "WO-4",
            "jobCardId": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
            "customerId": "01a14ba6-e56a-7478-990d-ceec492d63e7",
            "status": "NEW",
            "routeCardNo": null,
            "poNumber": "DEMO-COI-PO-004"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
            "number": "WO-1",
            "jobCardId": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
            "customerId": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
            "status": "COMPLETED",
            "routeCardNo": null,
            "poNumber": "DEMO-COI-PO-001"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
            "number": "WO-2",
            "jobCardId": "01a14ba6-e649-75ad-bbc9-16d7ecd00878",
            "customerId": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e",
            "status": "PAYMENT_DUE",
            "routeCardNo": null,
            "poNumber": "DEMO-COI-PO-002"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
            "number": "WO-3",
            "jobCardId": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
            "customerId": "01a14ba6-e55f-7151-850b-de9c5dbe0224",
            "status": "IN_PROGRESS",
            "routeCardNo": null,
            "poNumber": "DEMO-COI-PO-003"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e67d-7144-a636-1c77ab125e29",
            "number": "WO-5",
            "jobCardId": "01a14ba6-e67d-7757-8629-269f740c10ba",
            "customerId": "01a14ba6-e579-7091-b879-fd026c5ab537",
            "status": "NEW",
            "routeCardNo": null,
            "poNumber": "DEMO-COI-PO-005"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e695-7d5c-b505-a59fd80251a9",
            "number": "WO-6",
            "jobCardId": "01a14ba6-e695-7571-8b02-2a50cf0c7c89",
            "customerId": "01a14ba6-e533-720d-adca-0c4fb0dedcdd",
            "status": "NEW",
            "routeCardNo": null,
            "poNumber": "DEMO-COI-PO-006"
          }
        }
      ]
    },
    "jobCards": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
            "orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
            "code": "JOB4",
            "qrValue": "JC-00004",
            "status": "NOT_STARTED",
            "billing": "NOT_INVOICED",
            "materialQc": "ACCEPTED",
            "designApproval": "PENDING",
            "operations": [
              {
                "id": "01a14ba6-e670-7383-a269-879726ac44d1",
                "seq": 1,
                "name": "Turning",
                "status": "PENDING",
                "operatorId": null
              },
              {
                "id": "01a14ba6-e670-7e54-bd33-df068f305cd2",
                "seq": 2,
                "name": "Milling",
                "status": "PENDING",
                "operatorId": null
              },
              {
                "id": "01a14ba6-e670-7507-aae3-49f3c9cf0ef1",
                "seq": 3,
                "name": "Finishing",
                "status": "PENDING",
                "operatorId": null
              }
            ]
          }
        },
        {
          "node": {
            "id": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
            "orderId": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
            "code": "JOB1",
            "qrValue": "JC-00001",
            "status": "COMPLETED",
            "billing": "INVOICED",
            "materialQc": "ACCEPTED",
            "designApproval": "APPROVED",
            "operations": [
              {
                "id": "01a14ba6-e626-76cf-b05f-c274e0674ee7",
                "seq": 1,
                "name": "Turning",
                "status": "COMPLETED",
                "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
              },
              {
                "id": "01a14ba6-e627-719c-806b-ac64265762a5",
                "seq": 2,
                "name": "Milling",
                "status": "COMPLETED",
                "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
              },
              {
                "id": "01a14ba6-e627-7e03-9a71-6f42bd07e4d2",
                "seq": 3,
                "name": "Finishing",
                "status": "COMPLETED",
                "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
              }
            ]
          }
        },
        {
          "node": {
            "id": "01a14ba6-e649-75ad-bbc9-16d7ecd00878",
            "orderId": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
            "code": "JOB2",
            "qrValue": "JC-00002",
            "status": "COMPLETED",
            "billing": "INVOICED",
            "materialQc": "ACCEPTED",
            "designApproval": "APPROVED",
            "operations": [
              {
                "id": "01a14ba6-e64d-7037-9764-d88565c28617",
                "seq": 1,
                "name": "Turning",
                "status": "COMPLETED",
                "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
              },
              {
                "id": "01a14ba6-e64d-74b2-b6a0-86adb5271663",
                "seq": 2,
                "name": "Milling",
                "status": "COMPLETED",
                "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
              },
              {
                "id": "01a14ba6-e64d-7558-9888-cbe24e46077f",
                "seq": 3,
                "name": "Finishing",
                "status": "COMPLETED",
                "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
              }
            ]
          }
        },
        {
          "node": {
            "id": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
            "orderId": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
            "code": "JOB3",
            "qrValue": "JC-00003",
            "status": "IN_PROGRESS",
            "billing": "NOT_INVOICED",
            "materialQc": "ACCEPTED",
            "designApproval": "APPROVED",
            "operations": [
              {
                "id": "01a14ba6-e65f-75d4-bf28-cbbe41f127f6",
                "seq": 1,
                "name": "Turning",
                "status": "RUNNING",
                "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
              },
              {
                "id": "01a14ba6-e65f-7d50-be77-0daed0461d04",
                "seq": 2,
                "name": "Milling",
                "status": "PENDING",
                "operatorId": null
              },
              {
                "id": "01a14ba6-e65f-7f06-96f5-34afdc3af49f",
                "seq": 3,
                "name": "Finishing",
                "status": "PENDING",
                "operatorId": null
              }
            ]
          }
        },
        {
          "node": {
            "id": "01a14ba6-e67d-7757-8629-269f740c10ba",
            "orderId": "01a14ba6-e67d-7144-a636-1c77ab125e29",
            "code": "JOB5",
            "qrValue": "JC-00005",
            "status": "NOT_STARTED",
            "billing": "NOT_INVOICED",
            "materialQc": "REJECTED",
            "designApproval": "PENDING",
            "operations": [
              {
                "id": "01a14ba6-e682-7349-b544-8bd33b0c693f",
                "seq": 1,
                "name": "Turning",
                "status": "PENDING",
                "operatorId": null
              },
              {
                "id": "01a14ba6-e682-76bb-b257-93119fc4aadd",
                "seq": 2,
                "name": "Milling",
                "status": "PENDING",
                "operatorId": null
              },
              {
                "id": "01a14ba6-e682-7879-8c84-2a65306245fb",
                "seq": 3,
                "name": "Finishing",
                "status": "PENDING",
                "operatorId": null
              }
            ]
          }
        },
        {
          "node": {
            "id": "01a14ba6-e695-7571-8b02-2a50cf0c7c89",
            "orderId": "01a14ba6-e695-7d5c-b505-a59fd80251a9",
            "code": "JOB6",
            "qrValue": "JC-00006",
            "status": "NOT_STARTED",
            "billing": "NOT_INVOICED",
            "materialQc": "PENDING",
            "designApproval": "PENDING",
            "operations": [
              {
                "id": "01a14ba6-e69b-7919-9161-b21877f4db19",
                "seq": 1,
                "name": "Turning",
                "status": "PENDING",
                "operatorId": null
              },
              {
                "id": "01a14ba6-e69b-7a95-ac75-3551e1cd0d72",
                "seq": 2,
                "name": "Milling",
                "status": "PENDING",
                "operatorId": null
              },
              {
                "id": "01a14ba6-e69b-777e-8426-b9ebd85d207a",
                "seq": 3,
                "name": "Finishing",
                "status": "PENDING",
                "operatorId": null
              }
            ]
          }
        }
      ]
    },
    "machines": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e589-7248-a7e0-1239851b82aa",
            "code": "MC-851B82AA",
            "status": "RUNNING"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98",
            "code": "MC-137E4B98",
            "status": "IDLE"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5d7-711c-bcba-22be75d5d8b4",
            "code": "MC-75D5D8B4",
            "status": "MAINTENANCE"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5b5-71f3-aaea-903c4d97acc6",
            "code": "MC-4D97ACC6",
            "status": "IDLE"
          }
        }
      ]
    },
    "quotes": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e68b-7186-9275-d44e3591f471",
            "status": "SENT",
            "orderId": null,
            "customerId": "01a14ba6-e55f-7151-850b-de9c5dbe0224"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e678-7c29-b24d-e8d8f0d4ac48",
            "status": "DRAFT",
            "orderId": null,
            "customerId": "01a14ba6-e54e-713f-beb0-6e57f2a9a88e"
          }
        }
      ]
    },
    "invoices": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e836-79c7-861a-0c20920fb6fc",
            "status": "NEW",
            "orderId": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
            "jobCardId": "01a14ba6-e649-75ad-bbc9-16d7ecd00878"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e818-7935-ad87-c0e2a7448c5a",
            "status": "PAID",
            "orderId": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
            "jobCardId": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c"
          }
        }
      ]
    },
    "users": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e4e7-7b64-88ac-67a67b46b313",
            "role": "ACCOUNTANT",
            "name": "Demo Accountant",
            "status": "ACTIVE"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e420-7894-9aa9-5dd131ee9c29",
            "role": "ADMIN",
            "name": "Demo Admin",
            "status": "ACTIVE"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e48b-766b-8c6b-8862bea47064",
            "role": "QC",
            "name": "Demo Inspector",
            "status": "ACTIVE"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
            "role": "OPERATOR",
            "name": "Demo Operator",
            "status": "ACTIVE"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
            "role": "OWNER",
            "name": "Demo Owner",
            "status": "ACTIVE"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e442-7fae-b468-bf9fee75d9ec",
            "role": "SUPERVISOR",
            "name": "Demo Supervisor",
            "status": "ACTIVE"
          }
        }
      ]
    }
  }
}
109AssignMachine · loadoperatorPOST /graphql200 OKAs expected16 ms
Operation
jobCardByQr+machines+me
Request id
01a14ba9-b600-7cd0-9366-3b043361a9ff
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditAssignMachineLoad($qr: String!) { jobCardByQr(qrValue: $qr) { id orderId partName jobName operations { ...OP } } machines(first: 10) { totalCount edges { node { id name code location status currentAssignment { id jobCardId jobOperationId operationName startedAt } } } } me { user { id name } } }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }

Variables

{
  "qr": "JC-00004"
}

Response · HTTP 200

{
  "data": {
    "jobCardByQr": {
      "id": "01a14ba6-e66c-79e7-b2cf-2c2dcc9126a1",
      "orderId": "01a14ba6-e66c-7460-9ced-7abbb006f491",
      "partName": "Bearing housing",
      "jobName": null,
      "operations": [
        {
          "id": "01a14ba6-e670-7383-a269-879726ac44d1",
          "seq": 1,
          "name": "Turning",
          "machineId": null,
          "machineName": null,
          "operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
          "operatorName": "Demo Operator",
          "status": "PENDING",
          "startedAt": null,
          "completedAt": null
        },
        {
          "id": "01a14ba6-e670-7e54-bd33-df068f305cd2",
          "seq": 2,
          "name": "Milling",
          "machineId": null,
          "machineName": null,
          "operatorId": null,
          "operatorName": null,
          "status": "PENDING",
          "startedAt": null,
          "completedAt": null
        },
        {
          "id": "01a14ba6-e670-7507-aae3-49f3c9cf0ef1",
          "seq": 3,
          "name": "Finishing",
          "machineId": null,
          "machineName": null,
          "operatorId": null,
          "operatorName": null,
          "status": "PENDING",
          "startedAt": null,
          "completedAt": null
        }
      ]
    },
    "machines": {
      "totalCount": 4,
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e589-7248-a7e0-1239851b82aa",
            "name": "CNC Lathe 1",
            "code": "MC-851B82AA",
            "location": "Bay 1",
            "status": "RUNNING",
            "currentAssignment": {
              "id": "01a14ba6-e843-79ed-952f-25d5e9b3a2ed",
              "jobCardId": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
              "jobOperationId": "01a14ba6-e65f-75d4-bf28-cbbe41f127f6",
              "operationName": "Turning",
              "startedAt": "2026-10-17T20:56:32.063Z"
            }
          }
        },
        {
          "node": {
            "id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98",
            "name": "CNC Lathe 2",
            "code": "MC-137E4B98",
            "location": "Bay 1",
            "status": "IDLE",
            "currentAssignment": null
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5d7-711c-bcba-22be75d5d8b4",
            "name": "Conventional Lathe 1",
            "code": "MC-75D5D8B4",
            "location": "Bay 3",
            "status": "MAINTENANCE",
            "currentAssignment": null
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5b5-71f3-aaea-903c4d97acc6",
            "name": "VMC 1",
            "code": "MC-4D97ACC6",
            "location": "Bay 2",
            "status": "IDLE",
            "currentAssignment": null
          }
        }
      ]
    },
    "me": {
      "user": {
        "id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
        "name": "Demo Operator"
      }
    }
  }
}
149MachinesList · loadownerPOST /graphql200 OKAs expected66 ms
Operation
machines
Request id
01a14ba9-e330-76cb-a78c-d7fad9b8f189
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditMachines { machines(first: 10) { totalCount edges { node { ...M } } } all: machines(first: 1) { totalCount } running: machines(first: 1, filter: { status: RUNNING }) { totalCount } idle: machines(first: 1, filter: { status: IDLE }) { totalCount } maintenance: machines(first: 1, filter: { status: MAINTENANCE }) { totalCount } }
fragment M on Machine { id code name model type location status notes currentWork { workOrderId title operator } currentAssignment { id jobOperationId jobCardId operationName startedAt } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "machines": {
      "totalCount": 4,
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e589-7248-a7e0-1239851b82aa",
            "code": "MC-851B82AA",
            "name": "CNC Lathe 1",
            "model": "Demo LT-200",
            "type": "CNC_LATHE",
            "location": "Bay 1",
            "status": "RUNNING",
            "notes": "",
            "currentWork": {
              "workOrderId": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
              "title": "Gear blank",
              "operator": "Demo Operator"
            },
            "currentAssignment": {
              "id": "01a14ba6-e843-79ed-952f-25d5e9b3a2ed",
              "jobOperationId": "01a14ba6-e65f-75d4-bf28-cbbe41f127f6",
              "jobCardId": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
              "operationName": "Turning",
              "startedAt": "2026-10-17T20:56:32.063Z"
            }
          }
        },
        {
          "node": {
            "id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98",
            "code": "MC-137E4B98",
            "name": "CNC Lathe 2",
            "model": "Demo LT-200",
            "type": "CNC_LATHE",
            "location": "Bay 1",
            "status": "IDLE",
            "notes": "",
            "currentWork": null,
            "currentAssignment": null
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5d7-711c-bcba-22be75d5d8b4",
            "code": "MC-75D5D8B4",
            "name": "Conventional Lathe 1",
            "model": "",
            "type": "LATHE",
            "location": "Bay 3",
            "status": "MAINTENANCE",
            "notes": "",
            "currentWork": null,
            "currentAssignment": null
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5b5-71f3-aaea-903c4d97acc6",
            "code": "MC-4D97ACC6",
            "name": "VMC 1",
            "model": "Demo VM-640",
            "type": "CNC_MILL",
            "location": "Bay 2",
            "status": "IDLE",
            "notes": "",
            "currentWork": null,
            "currentAssignment": null
          }
        }
      ]
    },
    "all": {
      "totalCount": 4
    },
    "running": {
      "totalCount": 1
    },
    "idle": {
      "totalCount": 2
    },
    "maintenance": {
      "totalCount": 1
    }
  }
}
150MachinesList · sort-by-codeownerPOST /graphql200 OKAs expected30 ms

The app orders machines by code.

Operation
machines(sort)
Request id
01a14ba9-e478-723e-8ddb-28ab435c2985
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditMachinesSort { machines(first: 5, sort: { field: CODE, direction: ASC }) { totalCount } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "machines": {
      "totalCount": 4
    }
  }
}
165MachinesList · search-filterownerPOST /graphql200 OKAs expected16 ms
Operation
machines(search, filter)
Request id
01a14ba9-f5ef-73a8-adab-3a5c8d988a90
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditMachinesFilter { machines(first: 5, search: "Audit", filter: { statuses: [IDLE, MAINTENANCE], types: [CNC_LATHE] }) { totalCount } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "machines": {
      "totalCount": 1
    }
  }
}
176Flow · machinesoperatorPOST /graphql200 OKAs expected28 ms
Operation
machines
Request id
01a14baa-0239-7dd0-a46e-bd8fdc0efc1a
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "content-type": "application/json"
}

Query

query AuditFlowMachines { machines(first: 20, filter: { status: IDLE }) { edges { node { id } } } }

Variables

{}

Response · HTTP 200

{
  "data": {
    "machines": {
      "edges": [
        {
          "node": {
            "id": "01a14ba6-e59c-7f83-8eb9-96f1137e4b98"
          }
        },
        {
          "node": {
            "id": "01a14ba6-e5b5-71f3-aaea-903c4d97acc6"
          }
        }
      ]
    }
  }
}

updateMachine

153MachineDetails · saveownerPOST /graphql200 OKAs expected51 ms
Operation
updateMachine
Request id
01a14ba9-e7df-7629-a237-5c08baaf4b97
Expected
OK

Headers

{
  "authorization": "[REDACTED]",
  "idempotency-key": "key-153",
  "content-type": "application/json"
}

Query

mutation AuditUpdateMachine($id: ID!, $input: MachineInput!) { updateMachine(id: $id, input: $input) { ...M } }
fragment M on Machine { id code name model type location status notes currentWork { workOrderId title operator } currentAssignment { id jobOperationId jobCardId operationName startedAt } }

Variables

{
  "id": "01a14ba9-e6fa-7893-bf9c-c9ab059a6b9f",
  "input": {
    "name": "Audit Lathe",
    "code": "AUD-02",
    "model": "Synthetic",
    "type": "CNC_LATHE",
    "location": "Bay 2",
    "status": "MAINTENANCE",
    "notes": "Synthetic"
  }
}

Response · HTTP 200

{
  "data": {
    "updateMachine": {
      "id": "01a14ba9-e6fa-7893-bf9c-c9ab059a6b9f",
      "code": "AUD-02",
      "name": "Audit Lathe",
      "model": "Synthetic",
      "type": "CNC_LATHE",
      "location": "Bay 2",
      "status": "MAINTENANCE",
      "notes": "Synthetic",
      "currentWork": null,
      "currentAssignment": null
    }
  }
}

Search documentation

Search operations, types and errors from the generated contract.