Skip to main content
POST
/
talent-training
/
api
/
v2
/
realized-trainings
Create a realized-training (v2)
curl --request POST \
  --url https://{host}/talent-training/api/v2/realized-trainings \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ownerId": 416,
  "trainingId": 45,
  "sessionStartsOn": "2025-01-04",
  "sessionEndsOn": "2025-01-04",
  "hasAttended": true,
  "durationInHours": 14
}'
{
  "id": 235,
  "ownerId": 416,
  "trainingId": 45,
  "sessionStartsOn": "2025-01-04",
  "sessionEndsOn": "2025-01-04",
  "hasAttended": true,
  "durationInHours": 14
}

Headers

Authorization
string
required

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

Body

application/json

A realized-training represents a completed training process for a given employee.

ownerId
integer
required

ID of the employee who realized said training.

Required range: x >= 1
sessionStartsOn
string<date>
required

Date of the first day of the training session.

sessionEndsOn
string<date>
required

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

durationInHours
number
required

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

Must be a multiple of 0.01
training
object

Response

201 - application/json

Created

A realized-training represents a completed training process for a given employee.

ownerId
integer
required

ID of the employee who realized said training.

Required range: x >= 1
sessionStartsOn
string<date>
required

Date of the first day of the training session.

sessionEndsOn
string<date>
required

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

durationInHours
number
required

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

Must be a multiple of 0.01
id
number
Required range: x >= 1
training
object
trainingDemandId
integer

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

Required range: x >= 1
sessionId
integer

Reference of the training session the employee was registered on.

Required range: x >= 1
hasAttended
boolean
default:true

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.