# TrainingRequirement

object type

A TrainingRequirement (🎓 — THE TRAINING PROGRAM, THE WIRE): the owner's rule that people holding a role copied from the canned template roleTemplateKey must hold a VALID TrainingCertificate for the course courseKey — a LIVE play key of the Playbook registry. graceDays (0..365, default 14) = the days after the role grant before the requirement falls due; passMark (1..100, default 80) = the mark a sitting must reach — the STRICTEST rule binding the person for the course wins at an attempt's start. The pair (roleTemplateKey, courseKey) is IMMUTABLE after birth and UNIQUE among the org's non-doomed rules (a duplicate refuses CONFLICT/IDENTITY_TAKEN); at most 100 rules per org (CONFLICT/TRAINING_CAP past it). NOT searchable (no filter roster until the face).

## Fields

| Field | Type | Notes |
| --- | --- | --- |
| `id` | [ID](/types/#scalars) `ID!` | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
| `sysId` | [String](/types/#scalars) `String!` | The group-scoped human-facing system id (TE-…). |
| `type` | [String](/types/#scalars) `String!` | The kind of record — always `TrainingRequirement` here. |
| `caption` | [String](/types/#scalars) `String!` | The record’s display name — what people see it called. |
| `status` | [String](/types/#scalars) `String!` | The FSM state: active \| inactive \| doomed. |
| `parentId` | [ID](/types/#scalars) `ID!` | The parent org group; for a TrainingRequirement parentId === rootId. |
| `rootId` | [ID](/types/#scalars) `ID!` | The org-group family root. |
| `createdAt` | [String](/types/#scalars) `String!` | When the record was created, as a UTC timestamp. |
| `updatedAt` | [String](/types/#scalars) `String!` | When the record last changed, as a UTC timestamp. |
| `revisionNum` | [Int](/types/#scalars) `Int!` | How many times this record has been edited; the first save is 0. |
| `revision` | [ID](/types/#scalars) `ID!` | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
| `refCaptions` | [RefCaption](/types/RefCaption/) `[RefCaption!]!` | The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption. |
| `roleTemplateKey` | [String](/types/#scalars) `String!` | The canned role template the rule binds — owner · system_administrator · manager · associate_manager · warehouse_associate · sales_associate · cashier; a person holding ANY role copied from it owes the course. IMMUTABLE at birth. |
| `courseKey` | [String](/types/#scalars) `String!` | The course — a LIVE play key of the Playbook registry (e.g. connect-a-till). IMMUTABLE at birth. |
| `graceDays` | [Int](/types/#scalars) `Int!` | Days after the role grant before the requirement is due (0..365; default 14). |
| `passMark` | [Int](/types/#scalars) `Int!` | The pass mark a sitting must reach (1..100; default 80) — the strictest applicable rule wins. |
| `note` | [String](/types/#scalars) | What the rule is for (at most 400 characters); optional, set-only. |

## Used by

- [createTrainingRequirement](/reference/training-requirement/createTrainingRequirement/)
- [deactivateTrainingRequirement](/reference/training-requirement/deactivateTrainingRequirement/)
- [doomTrainingRequirement](/reference/training-requirement/doomTrainingRequirement/)
- [reactivateTrainingRequirement](/reference/training-requirement/reactivateTrainingRequirement/)
- [trainingRequirement](/reference/training-requirement/trainingRequirement/)
- [updateTrainingRequirement](/reference/training-requirement/updateTrainingRequirement/)
