QC · v1
attachQcReport
LiveattachQcReport
Append a report to an existing check without changing its recorded outcome. Owner, admin, supervisor, QC. Idempotent and audited.
/graphqlapp audienceWho can call this. Owner, admin, supervisor, QC.
Headers
Bearer <token>, issued for this endpoint's audience. The token decides the shop and roles; nothing in the request body can change them.Example:
Bearer eyJhbGciOiJFZERTQSJ9…Always
application/json. Only POST is accepted.Example:
application/jsonA key you generate once per user action (a UUID). Retrying with the same key never applies the change twice.
Example:
0192f0c1-9b2a-7d40-8c3e-1f5a6b7c8d9eYour id for this request (8–128 characters of A–Z a–z 0–9 . _ : -). Echoed back in the response header and in every error, so you can quote it when reporting a problem. Core makes one if you send none.
Example:
app-7f3c2a9e-checkout
Arguments
QC record id.
Example:
"0192f0c1-0000-7000-8000-000000d50004"Uploaded inspection report reference.
Example:
{"id":"0192f0c1-0000-7000-8000-000000ee0001","name":"synthetic-report.pdf","kind":null,"sizeBytes":1024}
Returns
Append a report to an existing check without changing its recorded outcome. Owner, admin, supervisor, QC. Idempotent and audited.
Show children
Stable id (UUIDv7).
Example:
"0192f0c1-0000-7000-8000-000000d50004"Inspector’s name.
The job card checked.
The step checked; null for a raw material check.
What was checked.
MACHINEA finished operation.RMThe raw material, before the first operation.
What the step does; null for a raw material check.
The job card’s QR text.
UTC time the check was recorded.
Who made the check (
User.id).That person’s name.
Set on a raw material rejection.
Inspector’s remark.
The inspection report.
Latest 50 audited report attachments, newest first.
The outcome.
Example:
"PASSED"ACCEPTEDRaw material accepted.FAILEDOperation failed.PASSEDOperation passed.REJECTEDRaw material rejected.
Label shown in the app: “Incoming inspection”, “In-process QC” or “Final QC”.
Errors
| Code | HTTP | When |
|---|---|---|
QC_RECORD_NOT_FOUND | 404 | Attaching a report to an unknown or other-shop QC record. |
Every error has the same body. See Errors.
Rate limit tier
Tier: per user. Over the limit you get RATE_LIMITED (HTTP 429) with a Retry-After header. See Response handling.