Skip to main content
GET
/
talent-training
/
api
/
v2
/
realized-trainings
List realized-trainings (v2)
curl --request GET \
  --url https://{host}/talent-training/api/v2/realized-trainings \
  --header 'Authorization: <authorization>'
{
  "items": [
    {
      "id": 235,
      "ownerId": 416,
      "training": {
        "type": "object",
        "readonly": true,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "title": {
            "type": "string",
            "readonly": true
          },
          "categoryId": {
            "type": "integer",
            "readOnly": true
          },
          "providerUrl": {
            "type": "string",
            "format": "uri",
            "readOnly": true
          },
          "level": {
            "type": "string",
            "enum": [
              "Beginner",
              "Middle",
              "Expert"
            ],
            "readOnly": true
          }
        }
      },
      "trainingDemandId": 4356,
      "sessionId": 12,
      "sessionStartsOn": "2025-01-04",
      "sessionEndsOn": "2025-01-04",
      "hasAttended": true,
      "durationInHours": 14
    }
  ],
  "prev": null,
  "next": "~f",
  "count": 1234
}

Headers

Authorization
string
required

API key. Value must be formatted like so: lucca application={api_key}.

Query Parameters

ownerIds
integer[]

Filter out realized-trainings by employee ID.

Example:
[416, 23]
hasAttended
boolean

Filter out realized-trainings on whether their employee actually attended. When omitted, all realized-trainings are returned.

sessionEndOnBefore
string<date>

Filter out realized-trainings on their end date (lower).

sessionEndOnAfter
string<date>

Filter out realized-trainings on their end date (greater).

trainingId
integer[]

Filter out realized-trainings based on the corresponding training.

fields.root
enum<string>[]

Include the total number of items across all pages, as well as pointers to the previous and next pages.

page

Page to retrieve. Either the page index <int> or the page cursor <string>.

Required range: x >= 0
limit
integer
default:20

Pagination: number of items per page.

Required range: 0 <= x <= 100

Response

200 - application/json

OK

items
A new realized-training must refer to a training that is at ready state. Please note that you cannot create two realized-trainings for the same employee with the same trainingId and sessionEndOn · object[]
prev
string | null
next
string | null
count
integer | null
Required range: x >= 0