TrainingCertificate
object type
A TrainingCertificate: the platform's own record that a person passed a course — minted by the API at a passing submit, in the same transaction as the attempt's transition, never by a client (no create op exists on the wire). The holder (userId), the course, the passing sitting (attemptId), the score and the pass mark, the issue instant and the course's content version (curriculumVersion). valid (live) → revoked (terminal; manage authority, a reason required) · valid → superseded (terminal; system-only — the person's next pass of the same course supersedes it and keeps it as history). expiresAt is null — 's refresh rule sets it. The by-id read answers the holder or the training-manage right; the listing is the manage right's (revoked drops from it, superseded stays as history; both stay point-readable). NOT searchable.
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The human-readable id, shaped like TC-… — stable for the record’s life. |
type | String String! | The kind of record — always TrainingCertificate here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of valid, superseded or revoked. |
parentId | ID ID! | The parent org group; for a TrainingCertificate parentId === rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
userId | ID ID! | The holder. Immutable. |
courseKey | String String! | The course — a live play key. Immutable. |
attemptId | ID ID! | The passing sitting. Immutable. |
score | Int | The sitting’s grade 0..100 — stored on every certificate; null on the wire to a NON-subject reader when training.score_visibility is 0 |
passMark | Int Int! | The pass mark the sitting had to reach. |
issuedAt | String String! | The issue instant (UTC ISO-8601) — the mint transaction’s clock. |
curriculumVersion | String String! | The play’s content hash the course was passed on (16 hex) — ’s refresh rule compares it to today’s. |
expiresAt | String | null — the refresh rule is content-based (refreshDue), never time-based. |
refreshDue | Boolean Boolean! | Derived at read time, never stored: true when the course’s current content hash differs from curriculumVersion (or the play is gone) — sit again to refresh; the api compares through the kit’s course facts. |