Users and roles
11 real calls against a live Core. Open a call for its headers, request and response.
createUser
029UsersList · create-app-8-char-passwordownerPOST /graphql400 VALIDATION_FAILEDAs decided6 ms
D15: passwords are at least 10 characters.
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-029",
"content-type": "application/json"
}Query
mutation AuditCreateUser($input: CreateUserInput!) { createUser(input: $input) { ...U } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"input": {
"name": "Audit Operator 8",
"designation": "Machinist",
"phone": "+919000000201",
"role": "OPERATOR",
"status": "ACTIVE",
"initialPassword": "[REDACTED]"
}
}Response · HTTP 400
{
"errors": [
{
"message": "The request has invalid fields.",
"locations": [
{
"line": 1,
"column": 54
}
],
"path": [
"createUser"
],
"extensions": {
"code": "VALIDATION_FAILED",
"message": "The request has invalid fields.",
"requestId": "01a14ba9-4a60-7f90-9010-2752fbcd1d1c",
"details": [
{
"path": "input.initialPassword",
"message": "Too small: expected string to have >=10 characters"
}
]
}
}
],
"data": null
}030UsersList · createownerPOST /graphql200 OKAs expected38 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-030",
"content-type": "application/json"
}Query
mutation AuditCreateUser2($input: CreateUserInput!) { createUser(input: $input) { ...U } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"input": {
"name": "Audit Operator",
"designation": "Machinist",
"phone": "+919000000202",
"role": "OPERATOR",
"status": "ACTIVE",
"initialPassword": "[REDACTED]"
}
}Response · HTTP 200
{
"data": {
"createUser": {
"id": "01a14ba9-4b84-7d73-8a4a-f05d76e8da8d",
"name": "Audit Operator",
"email": null,
"phone": "+919000000202",
"designation": "Machinist",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "OPERATOR",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": false,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba9-4bbe-7ea8-ad2f-ca1624e60e6a",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:59:08.596Z",
"tone": "INFO"
}
}
]
}
}
}
}resetUserPassword
034UserDetails · reset-passwordadminPOST /graphql200 OKAs expected29 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-034",
"content-type": "application/json"
}Query
mutation AuditReset($id: ID!, $p: String!) { resetUserPassword(id: $id, newPassword: $p) }Variables
{
"id": "01a14ba9-4b84-7d73-8a4a-f05d76e8da8d",
"p": "Audit-pass-789"
}Response · HTTP 200
{
"data": {
"resetUserPassword": true
}
}roles
028UsersList · loadownerPOST /graphql200 OKAs expected11 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditUsersList { organisation { name } roles { role description permissions } users(first: 20, sort: { field: CREATED_AT, direction: ASC }) { totalCount pageInfo { hasNextPage endCursor } edges { node { ...U } } } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{}Response · HTTP 200
{
"data": {
"organisation": {
"name": "Demo Coimbatore Works"
},
"roles": [
{
"role": "OWNER",
"description": "Runs the shop. Everything, including who else can sign in.",
"permissions": [
"org.read",
"org.manage",
"users.read",
"users.manage",
"customers.read",
"customers.write",
"customers.delete"
]
},
{
"role": "ADMIN",
"description": "Manages people, settings and customers on the owner’s behalf.",
"permissions": [
"org.read",
"org.manage",
"users.read",
"users.manage",
"customers.read",
"customers.write",
"customers.delete"
]
},
{
"role": "ACCOUNTANT",
"description": "Customers, invoices and payments.",
"permissions": [
"org.read",
"customers.read",
"customers.write"
]
},
{
"role": "SUPERVISOR",
"description": "Plans and watches the shop floor.",
"permissions": [
"org.read",
"customers.read"
]
},
{
"role": "OPERATOR",
"description": "Runs machines and logs production.",
"permissions": [
"org.read"
]
},
{
"role": "QC",
"description": "Inspects parts and records results.",
"permissions": [
"org.read"
]
}
],
"users": {
"totalCount": 6,
"pageInfo": {
"hasNextPage": false,
"endCursor": "WyIyMDI2LTEwLTE3VDIwOjU2OjMxLjI2MDQzNVoiLCIwMWExNGJhNi1lNGU3LTdiNjQtODhhYy02N2E2N2I0NmIzMTMiXQ"
},
"edges": [
{
"node": {
"id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
"name": "Audit Owner",
"email": "owner@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Owner",
"department": "",
"address": "10 Synthetic Works Road",
"city": "Coimbatore",
"state": "Tamil Nadu",
"pinCode": "641001",
"country": "India",
"role": "OWNER",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": true,
"exportReports": true
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e41d-719e-8cd0-bccc9ac18713",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.000Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e420-7894-9aa9-5dd131ee9c29",
"name": "Demo Admin",
"email": "admin@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Office admin",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "ADMIN",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": true,
"exportReports": true
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e45b-74c8-bfa8-83e52308e02d",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.063Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e442-7fae-b468-bf9fee75d9ec",
"name": "Demo Supervisor",
"email": "supervisor@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Shop floor supervisor",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "SUPERVISOR",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e47d-7771-8875-eb5ec61acbc4",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.096Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"name": "Demo Operator",
"email": "operator@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "CNC operator",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "OPERATOR",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": false,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e4a7-711b-86f0-5ae04fac9b2c",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.132Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e48b-766b-8c6b-8862bea47064",
"name": "Demo Inspector",
"email": "qc@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "QC inspector",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "QC",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": false,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e4c7-7361-b183-f9d7d2ecf9c2",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.170Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e4e7-7b64-88ac-67a67b46b313",
"name": "Demo Accountant",
"email": "accountant@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Accounts",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "ACCOUNTANT",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": false,
"exportReports": true
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e524-723d-8b6e-2343962bdf1f",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.260Z",
"tone": "INFO"
}
}
]
}
}
}
]
}
}
}setUserStatus
035UserDetails · set-statusadminPOST /graphql200 OKAs expected17 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-035",
"content-type": "application/json"
}Query
mutation AuditStatus($id: ID!) { setUserStatus(id: $id, status: SUSPENDED) { id status } }Variables
{
"id": "01a14ba9-4b84-7d73-8a4a-f05d76e8da8d"
}Response · HTTP 200
{
"data": {
"setUserStatus": {
"id": "01a14ba9-4b84-7d73-8a4a-f05d76e8da8d",
"status": "SUSPENDED"
}
}
}updateUser
031UsersList · edit-with-passwordadminPOST /graphql400 GRAPHQL_INVALIDAs decided9 ms
App change: a password is reset with resetUserPassword, not updateUser.
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-031",
"content-type": "application/json"
}Query
mutation AuditUpdateUserPw($id: ID!, $input: UpdateUserInput!) { updateUser(id: $id, input: $input) { id } }Variables
{
"id": "01a14ba9-4b84-7d73-8a4a-f05d76e8da8d",
"input": {
"name": "Audit Operator",
"password": "[REDACTED]"
}
}Response · HTTP 400
{
"data": null,
"errors": [
{
"message": "Field \"password\" is not defined by type \"UpdateUserInput\".",
"extensions": {
"code": "GRAPHQL_INVALID",
"message": "The GraphQL document is invalid.",
"requestId": "01a14ba9-4c95-7a47-8235-bc9235c9ad88"
}
}
]
}032UserDetails · save-profile-addressadminPOST /graphql200 OKAs expected11 ms
Headers
{
"authorization": "[REDACTED]",
"idempotency-key": "key-032",
"content-type": "application/json"
}Query
mutation AuditUpdateUser($id: ID!, $input: UpdateUserInput!) { updateUser(id: $id, input: $input) { ...U } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{
"id": "01a14ba9-4b84-7d73-8a4a-f05d76e8da8d",
"input": {
"name": "Audit Operator",
"designation": "Setter",
"department": "Machining",
"address": "5 Synthetic Lane",
"city": "Coimbatore",
"state": "Tamil Nadu",
"pinCode": "641002",
"country": "India"
}
}Response · HTTP 200
{
"data": {
"updateUser": {
"id": "01a14ba9-4b84-7d73-8a4a-f05d76e8da8d",
"name": "Audit Operator",
"email": null,
"phone": "+919000000202",
"designation": "Setter",
"department": "Machining",
"address": "5 Synthetic Lane",
"city": "Coimbatore",
"state": "Tamil Nadu",
"pinCode": "641002",
"country": "India",
"role": "OPERATOR",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": false,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba9-4bbe-7ea8-ad2f-ca1624e60e6a",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:59:08.596Z",
"tone": "INFO"
}
}
]
}
}
}
}user
037UserDetails · load-with-workownerPOST /graphql200 OKAs expected15 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditUserDetails($id: ID!) { organisation { name } user(id: $id) { ...U } jobCards(first: 10, filter: { operatorIds: [$id] }, sort: { field: LAST_ACTIVITY, direction: DESC }) { totalCount edges { node { id code orderId partName jobName status billing materialQc operations { ...OP } qcHistory { id jobOperationId result } } } } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }
fragment OP on JobOperation { id seq name machineId machineName operatorId operatorName status startedAt completedAt }Variables
{
"id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab"
}Response · HTTP 200
{
"data": {
"organisation": {
"name": "Demo Coimbatore Works"
},
"user": {
"id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"name": "Demo Operator",
"email": "operator@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "CNC operator",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "OPERATOR",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": false,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e4a7-711b-86f0-5ae04fac9b2c",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.132Z",
"tone": "INFO"
}
}
]
}
},
"jobCards": {
"totalCount": 3,
"edges": [
{
"node": {
"id": "01a14ba6-e649-75ad-bbc9-16d7ecd00878",
"code": "JOB2",
"orderId": "01a14ba6-e649-7d5b-9cc7-beaf68d484d7",
"partName": "Valve spindle",
"jobName": null,
"status": "COMPLETED",
"billing": "INVOICED",
"materialQc": "ACCEPTED",
"operations": [
{
"id": "01a14ba6-e64d-7037-9764-d88565c28617",
"seq": 1,
"name": "Turning",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.926Z",
"completedAt": "2026-10-17T20:56:31.935Z"
},
{
"id": "01a14ba6-e64d-74b2-b6a0-86adb5271663",
"seq": 2,
"name": "Milling",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.961Z",
"completedAt": "2026-10-17T20:56:31.969Z"
},
{
"id": "01a14ba6-e64d-7558-9888-cbe24e46077f",
"seq": 3,
"name": "Finishing",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.996Z",
"completedAt": "2026-10-17T20:56:32.009Z"
}
],
"qcHistory": [
{
"id": "01a14ba6-e7a8-77db-acee-562aa1f95c54",
"jobOperationId": null,
"result": "ACCEPTED"
},
{
"id": "01a14ba6-e7ca-78c3-b223-6439975c728d",
"jobOperationId": "01a14ba6-e64d-7037-9764-d88565c28617",
"result": "PASSED"
},
{
"id": "01a14ba6-e7ed-7385-b5c3-3780ee2e0fcf",
"jobOperationId": "01a14ba6-e64d-74b2-b6a0-86adb5271663",
"result": "PASSED"
},
{
"id": "01a14ba6-e815-7a06-8e0a-b3b6ef8cf401",
"jobOperationId": "01a14ba6-e64d-7558-9888-cbe24e46077f",
"result": "PASSED"
}
]
}
},
{
"node": {
"id": "01a14ba6-e60b-76c9-90a1-2e48ac0af20c",
"code": "JOB1",
"orderId": "01a14ba6-e60b-78e2-be46-05dfc8ff1cff",
"partName": "Pump shaft",
"jobName": null,
"status": "COMPLETED",
"billing": "INVOICED",
"materialQc": "ACCEPTED",
"operations": [
{
"id": "01a14ba6-e626-76cf-b05f-c274e0674ee7",
"seq": 1,
"name": "Turning",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.745Z",
"completedAt": "2026-10-17T20:56:31.760Z"
},
{
"id": "01a14ba6-e627-719c-806b-ac64265762a5",
"seq": 2,
"name": "Milling",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.794Z",
"completedAt": "2026-10-17T20:56:31.806Z"
},
{
"id": "01a14ba6-e627-7e03-9a71-6f42bd07e4d2",
"seq": 3,
"name": "Finishing",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "COMPLETED",
"startedAt": "2026-10-17T20:56:31.835Z",
"completedAt": "2026-10-17T20:56:31.852Z"
}
],
"qcHistory": [
{
"id": "01a14ba6-e6ed-7f91-8c5e-237cff65bf76",
"jobOperationId": null,
"result": "ACCEPTED"
},
{
"id": "01a14ba6-e71d-75a5-8439-917f6e7cf411",
"jobOperationId": "01a14ba6-e626-76cf-b05f-c274e0674ee7",
"result": "PASSED"
},
{
"id": "01a14ba6-e74a-7e4f-90e1-25a0c36de538",
"jobOperationId": "01a14ba6-e627-719c-806b-ac64265762a5",
"result": "PASSED"
},
{
"id": "01a14ba6-e788-78dc-9641-080fcb3f9712",
"jobOperationId": "01a14ba6-e627-7e03-9a71-6f42bd07e4d2",
"result": "PASSED"
}
]
}
},
{
"node": {
"id": "01a14ba6-e65b-777f-9975-ca8ed40d8792",
"code": "JOB3",
"orderId": "01a14ba6-e65b-7f56-8b35-19dd1d9b93d2",
"partName": "Gear blank",
"jobName": null,
"status": "IN_PROGRESS",
"billing": "NOT_INVOICED",
"materialQc": "ACCEPTED",
"operations": [
{
"id": "01a14ba6-e65f-75d4-bf28-cbbe41f127f6",
"seq": 1,
"name": "Turning",
"machineId": "01a14ba6-e589-7248-a7e0-1239851b82aa",
"machineName": "CNC Lathe 1",
"operatorId": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"operatorName": "Demo Operator",
"status": "RUNNING",
"startedAt": "2026-10-17T20:56:32.063Z",
"completedAt": null
},
{
"id": "01a14ba6-e65f-7d50-be77-0daed0461d04",
"seq": 2,
"name": "Milling",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
},
{
"id": "01a14ba6-e65f-7f06-96f5-34afdc3af49f",
"seq": 3,
"name": "Finishing",
"machineId": null,
"machineName": null,
"operatorId": null,
"operatorName": null,
"status": "PENDING",
"startedAt": null,
"completedAt": null
}
],
"qcHistory": [
{
"id": "01a14ba6-e82f-78e9-b50d-88a90f1fb703",
"jobOperationId": null,
"result": "ACCEPTED"
}
]
}
}
]
}
}
}users
017Discovery · live-idsownerPOST /graphql200 OKAs expected38 ms
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"
}
}
]
}
}
}028UsersList · loadownerPOST /graphql200 OKAs expected11 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditUsersList { organisation { name } roles { role description permissions } users(first: 20, sort: { field: CREATED_AT, direction: ASC }) { totalCount pageInfo { hasNextPage endCursor } edges { node { ...U } } } }
fragment U on User { id name email phone designation department address city state pinCode country role status joinedAt hasPassword permissions { viewOrders manageUsers exportReports } photo { ...F } documents { ...F } activity(first: 5) { totalCount edges { node { id label detail at tone } } } }
fragment F on AppFileReference { id name kind sizeBytes }Variables
{}Response · HTTP 200
{
"data": {
"organisation": {
"name": "Demo Coimbatore Works"
},
"roles": [
{
"role": "OWNER",
"description": "Runs the shop. Everything, including who else can sign in.",
"permissions": [
"org.read",
"org.manage",
"users.read",
"users.manage",
"customers.read",
"customers.write",
"customers.delete"
]
},
{
"role": "ADMIN",
"description": "Manages people, settings and customers on the owner’s behalf.",
"permissions": [
"org.read",
"org.manage",
"users.read",
"users.manage",
"customers.read",
"customers.write",
"customers.delete"
]
},
{
"role": "ACCOUNTANT",
"description": "Customers, invoices and payments.",
"permissions": [
"org.read",
"customers.read",
"customers.write"
]
},
{
"role": "SUPERVISOR",
"description": "Plans and watches the shop floor.",
"permissions": [
"org.read",
"customers.read"
]
},
{
"role": "OPERATOR",
"description": "Runs machines and logs production.",
"permissions": [
"org.read"
]
},
{
"role": "QC",
"description": "Inspects parts and records results.",
"permissions": [
"org.read"
]
}
],
"users": {
"totalCount": 6,
"pageInfo": {
"hasNextPage": false,
"endCursor": "WyIyMDI2LTEwLTE3VDIwOjU2OjMxLjI2MDQzNVoiLCIwMWExNGJhNi1lNGU3LTdiNjQtODhhYy02N2E2N2I0NmIzMTMiXQ"
},
"edges": [
{
"node": {
"id": "01a14ba6-e3c9-75f4-bf79-c35ada7f69bd",
"name": "Audit Owner",
"email": "owner@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Owner",
"department": "",
"address": "10 Synthetic Works Road",
"city": "Coimbatore",
"state": "Tamil Nadu",
"pinCode": "641001",
"country": "India",
"role": "OWNER",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": true,
"exportReports": true
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e41d-719e-8cd0-bccc9ac18713",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.000Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e420-7894-9aa9-5dd131ee9c29",
"name": "Demo Admin",
"email": "admin@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Office admin",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "ADMIN",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": true,
"exportReports": true
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e45b-74c8-bfa8-83e52308e02d",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.063Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e442-7fae-b468-bf9fee75d9ec",
"name": "Demo Supervisor",
"email": "supervisor@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Shop floor supervisor",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "SUPERVISOR",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e47d-7771-8875-eb5ec61acbc4",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.096Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e46a-7f5d-8e34-76cbfb26b5ab",
"name": "Demo Operator",
"email": "operator@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "CNC operator",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "OPERATOR",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": false,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e4a7-711b-86f0-5ae04fac9b2c",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.132Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e48b-766b-8c6b-8862bea47064",
"name": "Demo Inspector",
"email": "qc@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "QC inspector",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "QC",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": false,
"manageUsers": false,
"exportReports": false
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e4c7-7361-b183-f9d7d2ecf9c2",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.170Z",
"tone": "INFO"
}
}
]
}
}
},
{
"node": {
"id": "01a14ba6-e4e7-7b64-88ac-67a67b46b313",
"name": "Demo Accountant",
"email": "accountant@demo-coimbatore.demo.none1.in",
"phone": null,
"designation": "Accounts",
"department": "",
"address": "",
"city": "",
"state": "",
"pinCode": "",
"country": "India",
"role": "ACCOUNTANT",
"status": "ACTIVE",
"joinedAt": "2026-10-17",
"hasPassword": true,
"permissions": {
"viewOrders": true,
"manageUsers": false,
"exportReports": true
},
"photo": null,
"documents": [],
"activity": {
"totalCount": 1,
"edges": [
{
"node": {
"id": "01a14ba6-e524-723d-8b6e-2343962bdf1f",
"label": "Joined organisation",
"detail": null,
"at": "2026-10-17T20:56:31.260Z",
"tone": "INFO"
}
}
]
}
}
}
]
}
}
}033UsersList · search-designationownerPOST /graphql200 OKAs expected8 ms
The app searches name, email, phone and designation; "Audit Operator" was just saved with designation "Setter".
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditUsersSearch($s: String) { users(first: 5, search: $s) { totalCount } }Variables
{
"s": "Setter"
}Response · HTTP 200
{
"data": {
"users": {
"totalCount": 1
}
}
}158UsersList · filter-role-statusownerPOST /graphql200 OKAs expected31 ms
Headers
{
"authorization": "[REDACTED]",
"content-type": "application/json"
}Query
query AuditUsersFilter { users(first: 5, filter: { roles: [OPERATOR, QC], statuses: [ACTIVE, SUSPENDED] }) { totalCount } }Variables
{}Response · HTTP 200
{
"data": {
"users": {
"totalCount": 3
}
}
}