AlmondTill/G3N API

On this page

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.

What happens

Read-only.

Who may call it

Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.

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-cc15f8750000",
          "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-b335ac0d0000",
          "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