TrainingAttempt
object type
A TrainingAttempt: ONE sitting of a course's test by ONE person — always the caller who started it (nobody starts one for someone else). At start the platform draws 10 active questions of the course (every active question when fewer; below 3 the start refuses CONFLICT/TRAINING_TOO_FEW_QUESTIONS) and stores exactly that draw (questionIds); passMark is copied from the strictest requirement binding the person for the course, else the default; curriculumVersion is the play's content hash at the sitting. open (live) → submitted (terminal, kept) by the subject · open → doomed (terminal) by manage authority. ONE open sitting per (person, course) — a second start refuses CONFLICT/TRAINING_ATTEMPT_OPEN; at most 5 sittings per (person, course) per UTC day (CONFLICT/TRAINING_CAP). The by-id read answers the subject or the training-manage right; the listing is the manage right's. 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 TT-… — stable for the record’s life. |
type | String String! | The kind of record — always TrainingAttempt here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The record’s current state — one of open, submitted or doomed. |
parentId | ID ID! | The parent org group; for a TrainingAttempt 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 subject — the User who started the sitting; always the caller. Immutable at birth. |
orgId | ID ID! | The organization the sitting was started in (the session’s acting org) — the progress record’s second coordinate. Immutable at birth. |
courseKey | String String! | The course — a live play key. Immutable at birth. |
questionIds | ID [ID!]! | The draw — 3..10 question ids drawn from the active bank at start, in the order asked; the grade is taken against exactly these. Immutable at birth. |
answers | Int [Int!] | One option index per drawn question, in the draw order — set once at submit; null while open or doomed. |
score | Int | The grade 0..100 (rounded) — set at submit; null while open or doomed. |
passed | Boolean | score >= passMark — set at submit; null while open or doomed. |
passMark | Int Int! | Copied at start from the strictest requirement binding the person for the course, else the default 80. Immutable at birth. |
startedAt | String String! | The start instant (UTC ISO-8601). Immutable at birth. |
submittedAt | String | The submit instant (UTC ISO-8601); null while open or doomed. |
curriculumVersion | String String! | The play’s content hash at the sitting (16 hex — sha-256 over its title, line and the steps’ words); ’s refresh rule compares it. Immutable at birth. |
certificateId | ID | The certificate a passing submit minted in the same transaction; null on a fail, while open, or when doomed. |