Skip to main content
Question

API: Enroll Users in Course(s)

  • September 14, 2026
  • 3 replies
  • 27 views

According to the API document post /learn/v1/enrollments, there is only one session id in payload. How to enroll user(s) in multiple ILT courses’ session?

{
"course_ids": [
0
],
"user_ids": [
0
],
"group_ids": [
0
],
"level": "3",
"date_begin_validity": "2026-09-14",
"date_expire_validity": "2026-09-14",
"session_id": 0,
"subscription_record": 0,
"notification_ids": [
0
],
"notification_uuids": [
"string"
],
"enrollment_fields": {},
"consider_ef_as_optional": true,
"branches": [
{
"branch_id": 0,
"selected_status": 0
}
],
"atomic_enrollment": true,
"assignment_type": "mandatory",
"enrolled_at": "2026-09-14"
}

 

3 replies

dwilburn
Guide III
Forum|alt.badge.img+8
  • Guide III
  • September 15, 2026

Hi ​@liza2022 

You would run a second iteration with the basic information to only enroll the user in the session.


  • Author
  • Contributor III
  • September 15, 2026

Hi ​@dwilburn ,

it would work by enrolling session one by one. Is there API to enroll users in a list of sessions?


  • Author
  • Contributor III
  • September 15, 2026

I reply to myself, the API Batch import Enrollments is for enrolling a list of courses/sessions.