Events

Training

We send a request to the url on the following events.

  • TRAINING_CREATED
  • TRAINING_UPDATED
  • TRAINING_DELETED

Request body example

{
"id": "933d8663-edf6-42c9-895a-eeec13fff0ab", // Pluvo ID
"ref": "training-ref",
"event": "TRAINING_CREATED",
"title": "Training X",
"subtitle": "Subtitel Training X",
"introduction": "Introductie text",
"startDate": "2020-02-01",
"endDate": "2021-02-01",
"isActive": true,
"showParticipants": true,
"showSharedFiles": true,
"enableChat": true,
"sentDate": "2020-01-01T10:15:00.000Z",
"extraFields": {
"subject": "Development"
},
}

User

We send a request to the url on the following events.

  • USER_CREATED
  • USER_UPDATED
  • USER_DELETED

Request body example

{
"id": "933d8663-edf6-42c9-895a-eeec13fff0ab", // Pluvo ID
"ref": "user-ref",
"event": "USER_CREATED",
"name": "User X",
"email": "test@example.com",
"isActive": true,
"extraFields": {
"Afdeling": "Marketing"
},
"sentDate": "2020-01-01T10:15:00.000Z"
}

Group

We send a request to the url on the following events.

  • GROUP_CREATED
  • GROUP_UPDATED
  • GROUP_DELETED

Request body example

{
"id": "933d8663-edf6-42c9-895a-eeec13fff0ab", // Pluvo ID
"ref": "group-ref",
"event": "GROUP_CREATED",
"name": "Group X",
"enableChat": true,
"sentDate": "2020-01-01T10:15:00.000Z"
}

Module group

We send a request to the url on the following events.

  • EVENT_CONDITIONS_FULFILLED, Triggers when a module group in a training is unlocked
  • EVENT_FILE_UPLOADED, Triggers when a file is uploaded in an assignment

Request body example

{
"id": "933d8663-edf6-42c9-895a-eeec13fff0ab", // Pluvo ID
"ref": "module-group-ref",
"event": "EVENT_CONDITIONS_FULFILLED",
"training": {
// See training request body
},
"user": {
// See user request body
},
"conditions": [
{
"type": "AbsoluteDateCondition",
"date": "2020-12-01T08:00:00+00:00",
"comparison": "START"
},
{
"type": "RelativeDateCondition",
"offset": {
"days": 10,
"seconds": 0,
"microseconds": 0,
},
"comparison": "START"
},
{
"type": "CourseClearedCondition",
"course": {
"id": 1,
"title": "Course Module 1"
},
"preDelay": {
"days": 0,
"seconds": 0,
"microseconds": 0
},
"scoreThreshold": 50.0,
"courseComparison": "MIN"
}
],
"file": "https://files.pluvo.co/..." // When event is EVENT_FILE_UPLOADED
}