Training History Training History

Training History

Mounika Vukkadam Mounika Vukkadam

Training History

Training history includes all completion, enrolment and attendance history for a single user.

 

Get all training history:

Description
Returns the user's training history
Request Method GET
Request URL {{base_url}}/local/acorn_profile/index.php/api/1/training_history?tenancyId={{tenancy_id}}&username={{username}}
Authorisation Header Bearer {api_key}

 

Query String Parameters:

Parameter Data Type Details
tenancyId integer required, the id of the user's tenancy
username string required, the username of the user whose training history is being retrieved

 

Example Success Response:

{ 
"status": "Complete",
"data": [
"completions": [
{
"contentid": 3,
"contenttype": "Course",
"contentname": "Fraud Awareness",
"timeenrolled": "2019-11-24T18:49:54+11:00",
"timestarted": "2019-11-24T18:50:06+11:00",
"timecompleted": "2019-11-24T19:50:06+11:00",
"completionstatus": "Completed",
"certificatelink": "{base_url}/local/acorn_coursemanagement/index.php/generate_certificate/3/1624454462"
},
{
"contentid": 4,
"contenttype": "Live Learning",
"contentname": "Safety Workshop",
"timeenrolled": "",
"timestarted": "2019-09-11T07:00:24+00:00",
"timecompleted": "2019-09-11T07:00:24+00:00",
"completionstatus": "Completed",
"certificatelink": "{base_url}/local/acorn_facetoface/index.php/generate_certificate/4/1624453462"
}
],
"enrolments": [
{
"contentid": 97,
"contenttype": "Course",
"contentname": "Security",
"timeenrolled": "2019-11-27T19:08:57+11:00",
"timestarted": "",
"completionstatus": "Enrolled"
},
{
"contentid": 122,
"contenttype": "Course",
"contentname": "Cultural Awareness",
"timeenrolled": "2020-04-11T16:31:40+10:00",
"timestarted": "2020-04-11T16:31:51+10:00",
"completionstatus": "In Progress"
}
],
"attendance": [
{
"contentid": 42,
"contenttype": "Live Learning",
"contentname": "Safety Workshop",
"eventname": "Safety Workshop",
"sessionstarttime": "2020-03-13T04:00:00+00:00",
"sessionendtime": "2020-03-13T09:00:00+00:00",
"attendancestatus": "Attended",
"sessionlink": "{base_url}/view_facetoface/42/event/61/session/164"
}
],
"externallearnings": [
{
"id": 15,
"name": "Professional Career Seminar",
"completionstatus": "Completed",
"method": "Seminar",
"nonagency": true
}
],
"partneredcontentcompletions": [
{
"contentid": 6740,
"contenttype": "Linkedin Learning",
"contentname": "Learning Microsoft Project",
"timestarted": "2021-01-18T13:30:00+11:00",
"timecompleted": "2021-01-27T11:30:00+11:00",
"completionstatus": "Completed"
}
],
"badges": [
{
"id": 1,
"name": "Fraud Awareness Badge",
"description": "The badge for completing Fraud Awareness",
"timecreated": 1613711492,
"courseid": 3,
"imageurl": "{base_url}/pluginfile.php/121/badges/badgeimage/1/f1?refresh=4390"
}
]
]
}

Example Error Response:

{ 
"status": "Failed",
"errors": {
"You must provide a valid username."
}
}

Add comment

Please sign in to leave a comment.