myTraining
query · in the family Your own session
What it does
Your own training standing — the requirements that apply to you with their due dates, the lessons you have read, your sittings and your certificates.
Your own training standing: the active requirements binding one of your roles' templates in this organization, each with dueAt and certified · your progress per play · your courses · your open sittings · your valid certificates. Requires authentication on a user session.
Before you call
A signed-in user’s session — the call refuses an API key (AUTHZ/FORBIDDEN).
Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- Cashier
What happens
Read-only.
Returns
MyTraining MyTraining! — Your training standing — the ONE self read the face needs: the requirements that apply to you · your progress per play · your courses · your open sittings · your valid certificates.
Example request
query ExampleMyTraining {
myTraining {
requirements {
requirementId
roleTemplateKey
courseKey
passMark
graceDays
dueAt
certified
certificateId
refreshDue
refreshDueAt
}
}
}Example response
{
"data": {
"myTraining": {
"requirements": [
{
"requirementId": "01900000-0000-7000-8000-8cc092c80000",
"roleTemplateKey": "<role template key>",
"courseKey": "<course key>",
"passMark": 1,
"graceDays": 1,
"dueAt": "2027-01-31T00:00:00.000Z",
"certified": true,
"certificateId": "01900000-0000-7000-8000-4bce2b100000",
"refreshDue": true,
"refreshDueAt": "2027-01-31T00:00:00.000Z"
}
]
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)