v1

latestOpenAPI 3.1.0Apache 2.02026-07-22160175414.0 KB
Realized-trainings

Create a realized-training (v2)

Create a new realized training. It must refer to a training that is in the 'ready' state, and the sessionEndsOn date must be in the past. It is also not possible to create two realized trainings for the same employee with the same trainingId and sessionEndsOn.

post/talent-training/api/v2/realized-trainings

Request body

{"stackTrail":"components:schemas:v2.RealizedTraining:properties:id","oasType":"schema","type":"unknown"}
ownerIdinteger required

ID of the employee who realized said training.

trainingDemandIdinteger

Reference of the training-demand that led to the registration to this training session.

sessionIdinteger

Reference of the training session the employee was registered on.

sessionStartsOnstring date required

Date of the first day of the training session.

sessionEndsOnstring date required

Date of the last day (included) of the training session.

hasAttendedboolean

Whether the employee actually attended the training or not. You may not create a new realized-training with hasAttended: false, but you may retrieve existing ones in a GET request.

durationInHoursnumber required

Duration of the training in hours (e.g. "2.5" means two and a half hours).

Example request

{
  "id": 235,
  "ownerId": 416,
  "training": {
    "id": 45,
    "title": "Mastering French: From Basics to Fluency",
    "categoryId": 1,
    "providerUrl": "https://elan-francais.fr",
    "level": "Beginner"
  },
  "trainingDemandId": 4356,
  "sessionId": 12,
  "sessionStartsOn": "2025-01-04",
  "sessionEndsOn": "2025-01-04",
  "hasAttended": true,
  "durationInHours": 14
}

Response

Created

{"stackTrail":"components:schemas:v2.RealizedTraining:properties:id","oasType":"schema","type":"unknown"}
ownerIdinteger required

ID of the employee who realized said training.

trainingDemandIdinteger

Reference of the training-demand that led to the registration to this training session.

sessionIdinteger

Reference of the training session the employee was registered on.

sessionStartsOnstring date required

Date of the first day of the training session.

sessionEndsOnstring date required

Date of the last day (included) of the training session.

hasAttendedboolean

Whether the employee actually attended the training or not. You may not create a new realized-training with hasAttended: false, but you may retrieve existing ones in a GET request.

durationInHoursnumber required

Duration of the training in hours (e.g. "2.5" means two and a half hours).

Example response

{
  "id": 235,
  "ownerId": 416,
  "training": {
    "id": 45,
    "title": "Mastering French: From Basics to Fluency",
    "categoryId": 1,
    "providerUrl": "https://elan-francais.fr",
    "level": "Beginner"
  },
  "trainingDemandId": 4356,
  "sessionId": 12,
  "sessionStartsOn": "2025-01-04",
  "sessionEndsOn": "2025-01-04",
  "hasAttended": true,
  "durationInHours": 14
}