Skip to main content

Hello,

I am using the API and trying to pull the access information for users associated with a course (active and archived).  

These endpoint give me some of the information but not the access dates, progress and training material time:

https://agilecvacsandbox.docebosaas.com/course/v1/courses/31/enrollments

{
"data": {
"items": :
{
"user_id": "13113",
"username": "#########",
"email": "##########",
"first_name": "#######",
"last_name": "########",
"level": "Learner",
"enrollment_date": "2024-03-25 16:05:07",
"active_from": null,
"active_until": null,
"status": "Completed",
"status_id": "2",
"level_id": "3",
"user_status_id": "1",
"user_status": "Active",
"score_given": "0.00",
"forced_score_given": false,
"date_complete": "2024-03-25 16:06:11"
},
{
"user_id": "13037",
"username": "##########",
"email": "###########",
"first_name": "#######",
"last_name": "######",
"level": "Learner",
"enrollment_date": "2022-12-12 17:33:59",
"active_from": null,
"active_until": null,
"status": "Enrolled",
"status_id": "0",
"level_id": "3",
"user_status_id": "1",
"user_status": "Active",
"score_given": "0.00"
},
{
"user_id": "13027",
"username": "##########",
"email": "############",
"first_name": "####",
"last_name": "######",
"level": "Learner",
"enrollment_date": "2022-09-21 17:21:54",
"active_from": null,
"active_until": null,
"status": "Completed",
"status_id": "2",
"level_id": "3",
"user_status_id": "1",
"user_status": "Active",
"score_given": "0.00",
"forced_score_given": false,
"date_complete": "2022-09-21 17:24:10"
},
{
"user_id": "13040",
"username": "########",
"email": "######",
"first_name": "Test",
"last_name": "User",
"level": "Learner",
"enrollment_date": "2022-09-21 15:20:49",
"active_from": null,
"active_until": null,
"status": "In Progress",
"status_id": "1",
"level_id": "3",
"user_status_id": "1",
"user_status": "Active",
"score_given": "0.00"
}
],
"count": 4,
"has_more_data": false,
"current_page": 1,
"current_page_size": 10,
"total_page_count": 1,
"total_count": 4
},
"version": "1.0.0",
"_links": :]
}

https://agilecvacsandbox.docebosaas.com/course/v1/courses/enrollments

{
"data": {
"items": :
{
"user_id": 13135,
"username": "eerikson215",
"course_id": 3,
"course_uid": "E-J0E815",
"course_code": "CDT-13-ENG",
"course_name": "Resumes for Success in the Civilian Labour Market",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "completed",
"enrollment_created_by": 13135,
"enrollment_created_at": "2024-04-11 16:52:05",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-04-11 16:52:53",
"enrollment_completion_date": "2024-04-11 16:52:44",
"enrollment_score": 0
},
{
"user_id": 13135,
"username": "eerikson215",
"course_id": 15,
"course_uid": "E-P0WZ0J",
"course_code": "CDT-01-ENG",
"course_name": "Accessing Job Boards",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "in_progress",
"enrollment_created_by": 13135,
"enrollment_created_at": "2024-04-11 16:51:28",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-04-11 16:51:44",
"enrollment_completion_date": null,
"enrollment_score": 0
},
{
"user_id": 13113,
"username": "btonga261",
"course_id": 11,
"course_uid": "E-Y1QZ1K",
"course_code": "CDT-05-ENG",
"course_name": "What Do I Have To Offer: Values & Transferable Skills",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "completed",
"enrollment_created_by": 13113,
"enrollment_created_at": "2024-04-11 16:48:51",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-04-11 16:50:41",
"enrollment_completion_date": "2024-04-11 16:50:32",
"enrollment_score": 0
},
{
"user_id": 13113,
"username": "btonga261",
"course_id": 14,
"course_uid": "E-Q072V6",
"course_code": "CDT-02-ENG",
"course_name": "Cover Letters for Success in the Civilian Job Market",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "in_progress",
"enrollment_created_by": 13113,
"enrollment_created_at": "2024-04-11 16:48:03",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-04-11 16:48:34",
"enrollment_completion_date": null,
"enrollment_score": 0
},
{
"user_id": 13113,
"username": "btonga261",
"course_id": 31,
"course_uid": "E-P08WJV",
"course_code": "CDT-10-ENG",
"course_name": "Building Resilience During Your Job Search",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "completed",
"enrollment_created_by": 13113,
"enrollment_created_at": "2024-03-25 16:05:07",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-04-12 17:19:47",
"enrollment_completion_date": "2024-03-25 16:06:11",
"enrollment_score": 0
},
{
"user_id": 13113,
"username": "btonga261",
"course_id": 4,
"course_uid": "E-602WVX",
"course_code": "CDT-12-ENG",
"course_name": "Resource and Support Guide",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "in_progress",
"enrollment_created_by": 13113,
"enrollment_created_at": "2024-03-25 15:59:47",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-03-25 16:04:57",
"enrollment_completion_date": null,
"enrollment_score": 0
},
{
"user_id": 13125,
"username": "pnjddbza147",
"course_id": 7,
"course_uid": "E-P08J03",
"course_code": "CDT-09-ENG",
"course_name": "PLAR and Your Military Career",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "in_progress",
"enrollment_created_by": 13125,
"enrollment_created_at": "2024-01-18 19:26:10",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-04-09 19:51:48",
"enrollment_completion_date": null,
"enrollment_score": 0
},
{
"user_id": 13125,
"username": "pnjddbza147",
"course_id": 9,
"course_uid": "E-O06RVJ",
"course_code": "CDT-07-ENG",
"course_name": "Job Search Strategy",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "in_progress",
"enrollment_created_by": 13125,
"enrollment_created_at": "2024-01-17 21:05:14",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-01-17 21:45:17",
"enrollment_completion_date": null,
"enrollment_score": 0
},
{
"user_id": 13125,
"username": "pnjddbza147",
"course_id": 8,
"course_uid": "E-GVP31J",
"course_code": "CDT-08-ENG",
"course_name": "Military to Civilian Employment Transition",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "in_progress",
"enrollment_created_by": 13125,
"enrollment_created_at": "2024-01-17 19:40:42",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-01-17 19:41:03",
"enrollment_completion_date": null,
"enrollment_score": 0
},
{
"user_id": 13125,
"username": "pnjddbza147",
"course_id": 4,
"course_uid": "E-602WVX",
"course_code": "CDT-12-ENG",
"course_name": "Resource and Support Guide",
"course_type": "elearning",
"course_begin_date": null,
"course_end_date": null,
"enrollment_level": "student",
"enrollment_status": "in_progress",
"enrollment_created_by": 13125,
"enrollment_created_at": "2024-01-10 20:22:48",
"enrollment_validity_begin_date": null,
"enrollment_validity_end_date": null,
"enrollment_date_last_updated": "2024-01-10 20:26:02",
"enrollment_completion_date": null,
"enrollment_score": 0
}
],
"count": 10,
"has_more_data": true,
"cursor": null,
"current_page": 1,
"current_page_size": 10,
"total_page_count": 7,
"total_count": 62,
"sort": :
{
"sort_attr": "enrollment_created_at",
"sort_dir": "desc"
}
]
},
"version": "1.0.0",
"_links": {
"self": {
"href": "/course/v1/courses/enrollments?page=1&per-page=10"
}
}
}

Can you please help me find the service/endpoint I can use to get this data?

Thanks

Jamie

Be the first to reply!

Reply