Skip to main content
GET
/
talent-training
/
api
/
v1
/
realized-trainings
List realized-trainings
curl --request GET \
  --url https://{host}/talent-training/api/v1/realized-trainings \
  --header 'Authorization: <authorization>'
{
  "summary": "Realized-trainings example",
  "value": {
    "items": [
      {
        "id": 42,
        "hasAttended": true,
        "trainingId": 49,
        "trainingTitle": "How to become a better speaker.",
        "trainingCategoryCode": "softskills-Communication",
        "providerId": 22,
        "providerName": "Cours Florent",
        "providerUrl": "https://www.coursflorent.fr/",
        "sessionStartOn": "2023-04-12",
        "sessionEndOn": "2023-04-23",
        "sessionDurationInHours": 42,
        "trainingDemandId": 74,
        "ownerId": 416
      }
    ],
    "count": 5642,
    "prev": null,
    "next": "!SGlnaA|A1kVrwDKrz|th"
  }
}
This endpoint is deprecated in favor of a newer version.

Headers

Authorization
string
required

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

Query Parameters

ownerId
integer

Only retrieve realized-trainings that involve a given employee ID.

Required range: x >= 1
sessionId
integer

Only retrieve realized-trainings related to the given session ID.

Required range: x >= 1
hasAttended
boolean

Return the realized-trainings the owner actually attended (true) or those the owner was absent (false).

sessionEndOnAfter
string<date>

Returns the realized-trainings that have a sessionEndDate after (non inclusive) this date

sort
enum<string>[]

Sort items by one of their property. "+" == "" => ascending "prop" value "-" => descending "prop" value Syntax is:

<sort>                  ::= '-|+'? <property> ( ',' <property> )*
<property> ::= <strictString> ( '.' <strictString> )*
<strictString> ::= ( <char> | <digit> | '_' | '-' )+
Example:
["-id"]
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 or the page cursor .

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

Pagination: number of items per page.

Required range: 0 <= x <= 100

Response

OK

count
integer | null

Total number of items across all pages. You need to include ?fields.root=count to your request to retrieve this.

Required range: x >= 0
prev
string | null

Cursor to the previous page. You need to include ?fields.root=prev in order to retrieve this.

next
string | null

Cursor to the next page. You need to include ?fields.root=next in order to retrieve this.

items
The realized-training resource · object[]